:root {
    --primary-dark: #0a192f;
    --secondary-dark: #112240;
    --tech-blue: #64ffda;
    --light-blue: #8892b0;
    --card-bg: rgba(17, 34, 64, 0.95);
}

.hero {
    height: 100vh;
    background: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    padding-top: 90px;
    color: #fff;
}

.hero img {
    max-height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.services {
    padding-top: 90px;
}
.fs-title {
    font-size: calc(1.275rem + 0.3vw) ;

}
.services .card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: var(--card-bg);
    border: 1px solid rgba(100, 255, 218, 0.15);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.services .card:hover,
.services .card.in-view {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(100, 255, 218, 0.15);
    border-color: var(--tech-blue);
    background: rgba(17, 34, 64, 0.98);
}

.services .card-img-top {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 0.8rem;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.services .card:hover .card-img-top,
.services .card.in-view .card-img-top {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(100, 255, 218, 0.2);
}

.services .card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem 0.5rem 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.services .card-title {
    color: var(--tech-blue);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.services .card-title::after {  /* 下划线初始宽度40px */
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background: var(--tech-blue);
    transition: width 0.3s ease;
}

.services .card:hover .card-title::after, /* 下划线激活宽度50% */
.services .card.in-view .card-title::after {
    width: 50%;
}

.services .card-text {
    color: var(--light-blue);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    display: block;
}
.services .card-text_768 {
    display: none;
}
.service-card {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(100, 255, 218, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before,
.service-card.in-view::before {
    opacity: 1;
}

.display-3 {
    font-weight: 800;
    font-size: 2.8rem;
    background: linear-gradient(35deg, #fff 30%, var(--tech-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient {
    background: linear-gradient(45deg, #fff, var(--tech-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-light-blue {
    color: var(--light-blue);
}

.tech-bg {
    background: var(--secondary-dark);
    position: relative;
    overflow: hidden;
}

.tech-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(100, 255, 218, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.navbar {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .services .card-text_768{
        color: var(--light-blue);
        line-height: 1.6;
        margin-bottom: 0;
        font-size: 0.75rem;
        display: block;
    }
    .services .card-text {
        display: none;
    }

    .fs-title {
    font-size: calc(1rem + 0.3vw) ;

}
    .hero {
        text-align: center;
        padding-top: 80px;
        height: auto;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero img {
        margin-top: 2rem;
        max-height: 300px;
        margin-bottom: 0;
    }

    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .display-3 {
        font-size: 2.2rem;
    }

    .services .card {
        padding: 0.8rem;
    }

    .services .card-body {
        padding: 1.2rem 0.3rem 0.3rem;
    }

    .services .card:hover {
        transform: none;
        border-color: rgba(100, 255, 218, 0.15);
        background: var(--card-bg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .services .card:hover .card-img-top {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .services .card:hover .card-title::after {
        width: 40px;
    }

    .services {
        padding-top: 80px;
    }
}
.pc-top-nav {
         display: none;
    }
/* 底部导航样式 */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(100, 255, 218, 0.15);
}

.mobile-bottom-nav__item {
    flex: 1;
    text-align: center;
}

.mobile-bottom-nav__item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-blue);
    text-decoration: none;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.mobile-bottom-nav__item-content:hover,
.mobile-bottom-nav__item-content.active {
    color: var(--tech-blue);
}

.mobile-bottom-nav__item-content i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-bottom-nav__item-content span {
    font-size: 0.75rem;
}

/* 为底部导航腾出空间 */
.services {
    padding-bottom: calc(4rem + 60px); /* 原有底部内边距 + 底部导航高度 */
}

/* 在大屏幕上隐藏底部导航 */
@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none;
    }
    .pc-top-nav {
         display: block;
    }

    .services {
        padding-bottom: 4rem;
    }
}

/* 创建页面特定样式 */
.create-hero {
    padding-top: 90px;
    min-height: 100vh;
}

.create-hero .container {
    max-width: 100%;
    padding: 0;
}

.works-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 2rem;
}

.works-section .works-grid {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .works-section {
        padding: 0 0.5rem;
    }
}

/* 创建按钮样式 */
.create-btn {
    background: linear-gradient(45deg, #64ffda 0%, #48bfe3 100%);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.create-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, #48bfe3 0%, #64ffda 100%);
}

/* 按钮脉冲动画 */
.pulse-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: rgba(100, 255, 218, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* 作品展示区基础样式 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin: 0 -1rem;
    margin-bottom: 2rem;
    grid-auto-flow: dense;
}

.work-card-wrapper {
    width: 100%;
}

/* 竖版卡片样式 */
.work-card-wrapper.vertical-wrapper {
    grid-row: span 2;
}

/* 作品卡片样式 */
.work-card {
    background: rgba(17, 34, 64, 0.6);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.work-card:hover {
    transform: translateY(-5px);
    border-color: var(--tech-blue);
}

/* 缩略图容器 */
.work-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
}

/* 横版视频比例 */
.work-thumbnail:not(.vertical) {
    aspect-ratio: 16/9;
}

/* 竖版视频比例 */
.work-thumbnail.vertical {
    aspect-ratio: 9/16;
}

/* 缩略图 */
.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-card:hover .work-thumbnail img {
    transform: scale(1.05);
}

/* 播放按钮 */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-card:hover .play-button {
    opacity: 1;
}

/* 作品信息 */
.work-info {
    background: rgba(17, 34, 64, 0.95);
    padding: 1.25rem;
}

.work-meta {
    font-size: 0.9rem;
    color: var(--light-blue);
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .works-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin: 0 -0.5rem;
    }

    .work-card-wrapper.vertical-wrapper {
        grid-row: span 2;
    }

    .work-info {
        padding: 0.75rem;
    }

    /* 加载更多按钮移动端样式 */
    .load-more-btn {
        width: calc(100% - 1rem);
        margin: 1rem 0.5rem 70px;
    }
}

/* 加载更多按钮 */
.load-more-btn {
    border: 1px solid var(--tech-blue);
    color: var(--tech-blue);
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    background: transparent;
}

.load-more-btn:hover {
    background: var(--tech-blue);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* 视频模态窗口样式 */
.modal-content {
    background: var(--secondary-dark) !important;
    border: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
}

.modal-xl {
    max-width: 1200px;
    width: 90%;
    margin: 1.75rem auto;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

/* 视频容器样式 */
.video-container {
    display: flex;
    gap: 1rem;
    height: 600px;
    padding: 1rem;
}

/* 视频播放器样式 */
.video-player {
    flex: 0 0 60%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* 视频信息区域样式 */
.video-info {
    flex: 0 0 40%;
    height: 100%;
    background: var(--secondary-dark);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
}

.info-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

/* 标签页导航 */
.nav-tabs {
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    padding: 0 1rem;
    background: rgba(17, 34, 64, 0.8);
}

.nav-tabs .nav-link {
    color: var(--light-blue);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--tech-blue);
}

.nav-tabs .nav-link.active {
    color: var(--tech-blue);
    background: transparent;
    border-bottom: 2px solid var(--tech-blue);
}

/* 内容区域样式 */
.tab-content {
    flex: 1;
    overflow: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.tab-pane {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-pane::-webkit-scrollbar {
    display: none;
}

/* 创意描述框样式 */
.description-box {
    background: rgba(17, 34, 64, 0.6);
    border-radius: 0.5rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.description-box::-webkit-scrollbar {
    display: none;
}

/* 底部操作栏固定在底部 */
.info-footer {
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    background: rgba(17, 34, 64, 0.8);
    padding: 1rem;
}

.footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem auto;
        max-width: 95%;
        height: calc(100vh - 2rem);
        display: flex;
        align-items: center;
    }

    .modal-content {
        height: calc(100vh - 2rem);
        border-radius: 0.5rem;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        flex: 1;
        padding: 0;
        display: flex;
    }

    .video-container {
        flex: 1;
        flex-direction: column;
        height: 100%;
        padding: 0;
        gap: 0;
    }

    .video-player {
        flex: 0 0 70%;
        width: 100%;
        border-radius: 0;
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .video-player video {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        margin: auto;
    }

    .video-info {

        width: 100%;
        height: 100%;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .info-header {
        padding: 0.5rem 0.75rem;
        flex-shrink: 0;
    }

    .nav-tabs {
        padding: 0;
        flex-shrink: 0;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem 0.75rem;
    }

    .tab-content {
        flex: 1;
        padding: 0.75rem;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        display: flex;
        flex-direction: column;
    }

    .tab-content::-webkit-scrollbar {
        display: none;
    }

    .tab-pane {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .tab-pane.active {
        height: 100%;
    }

    .description-box {
        flex: 1;
        overflow-y: auto;
    }

    .info-footer {
        padding: 0.5rem 0.75rem;
        flex-shrink: 0;
        background: rgba(17, 34, 64, 0.95);
        border-top: 1px solid rgba(100, 255, 218, 0.1);
    }

    .footer-actions {
        justify-content: flex-end;
        gap: 0.75rem;
    }

    .btn-use-now {
        padding: 0.4rem 1rem;
    }
}

/* 作者信息样式 */
.author-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.author-name {
    font-size: 1rem;
}

.publish-time {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* 标签页样式 */
.nav-tabs {
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    padding: 0 1rem;
    background: rgba(17, 34, 64, 0.8);
}

.nav-tabs .nav-link {
    color: var(--light-blue);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--tech-blue);
}

.nav-tabs .nav-link.active {
    color: var(--tech-blue);
    background: transparent;
    border-bottom: 2px solid var(--tech-blue);
}

/* 描述框样式 */
.description-box {
    background: rgba(17, 34, 64, 0.6);
    border-radius: 0.5rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.model-info {
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
    color: var(--light-blue);
}

.model-info .label {
    color: var(--tech-blue);
    margin-right: 0.5rem;
}

/* 底部操作栏样式 */
.btn-like,
.btn-share {
    color: var(--light-blue);
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}

.btn-like:hover,
.btn-share:hover {
    color: var(--tech-blue);
}

.btn-like i,
.btn-share i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.btn-use-now {
    background: linear-gradient(45deg, var(--tech-blue), #48bfe3);
    border: none;
    padding: 0.5rem 2rem;
    color: var(--primary-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-use-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

/* 评论为空状态样式 */
.comments-empty {
    color: var(--light-blue);
}

.comments-empty i {
    opacity: 0.5;
}

/* 视频容器样式 */
.video-container {
    display: flex;
    gap: 1rem;
    max-height: 85vh;
}

/* 横版布局（适用于9:16视频） */
.video-container.layout-horizontal {
    flex-direction: row;
}

.layout-horizontal .video-player {
    flex: 0 0 40%;
    max-height: 85vh;
}

.layout-horizontal .video-info {
    flex: 0 0 60%;
}

/* 竖版布局（适用于16:9视频） */
.video-container.layout-vertical {
    flex-direction: column;
}

.layout-vertical .video-player {
    flex: 0 0 auto;
    width: 100%;
}

.layout-vertical .video-info {
    flex: 1 1 auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-container {
        flex-direction: column !important;
        gap: 0.5rem;
    }

    .layout-horizontal .video-player,
    .layout-vertical .video-player {
        width: 100%;
        max-height: 50vh;
    }

    .video-info {
        width: 100%;
    }

    .nav-tabs {
        padding: 0 0.5rem;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
    }

    .info-footer {
        padding: 0.75rem 1rem;
    }

    .btn-use-now {
        padding: 0.5rem 1.5rem;
    }
}