/* ================================================
   system.css - C5 System 页面专属样式
   
   通用样式（导航栏、Footer、Banner等）在 style.css 中
   ================================================ */


/* ==================== 全局平滑滚动 ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== Banner 副标题 ==================== */
.banner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.6rem;
    margin-top: 10px;
    text-align: center;
    padding-bottom: 20px;
}

main {
    padding-top: 0;
}

/* ==================== YouTube视频自适应容器 ==================== */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;       /* 16:9 比例 */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==================== 视频封面缩略图 ==================== */
.video-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    margin-top: auto;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb:hover {
    opacity: 0.85;
}

/* 播放按钮 */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(168, 85, 247, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    pointer-events: none;
}

/* ==================== 视频弹窗浮层 ==================== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
    animation: fadeInBg 0.4s ease forwards;
}

.video-modal.closing {
    animation: fadeOutBg 0.3s ease forwards;
}

@keyframes fadeInBg {
    from { background: rgba(0, 0, 0, 0); }
    to { background: rgba(0, 0, 0, 0.85); }
}

@keyframes fadeOutBg {
    from { background: rgba(0, 0, 0, 0.85); }
    to { background: rgba(0, 0, 0, 0); }
}

/* 弹窗内容框 */
.video-modal-content {
    position: relative;
    width: 70%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
}

/* 内容入场动画 */
.video-modal.active .video-modal-content {
    animation: popIn 0.4s ease forwards;
}

/* 内容退场动画 */
.video-modal.closing .video-modal-content {
    animation: popOut 0.3s ease forwards;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

.video-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* 关闭按钮 */
.video-modal-close {
    position: absolute;
    top: -45px;
    right: -10px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    width: 40px;
    height: 40px;
    background: rgba(168, 85, 247, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-modal-close:hover {
    background: #a855f7;
}

/* ==================== 右侧浮动导航栏 ==================== */
.side-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(20, 15, 40, 0.9);
    padding: 20px 14px;
    border-radius: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

/* 导航链接 */
.side-nav a {
    text-decoration: none;
    color: #c084fc;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-nav a:hover {
    background: linear-gradient(to bottom left, #a855f7, #7c3aed);
    color: #fff;
    transform: translateX(-5px);
}

/* 当前激活的导航项 */
.side-nav a.active {
    background: linear-gradient(to bottom left, #a855f7, #7c3aed);
    color: #fff;
}

/* --- 折叠状态 --- */
.side-nav.collapsed {
    padding: 24px 8px;
    right: 8px;
}

/* 折叠时隐藏链接文字 */
.side-nav.collapsed a {
    display: none;
}

/* 折叠指示器（3个箭头） */
.collapse-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
}

/* 折叠时显示箭头 */
.side-nav.collapsed .collapse-indicator {
    display: flex;
}

.arrow-hint {
    font-size: 1.2em;
    color: #a855f7;
    animation: arrowPulse 1.5s ease-in-out infinite;
}

.arrow-hint:nth-child(2) {
    animation-delay: 0.3s;
}

.arrow-hint:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-4px);
    }
}

/* 悬停时展开 */
.side-nav.collapsed:hover {
    padding: 20px 14px;
    right: 20px;
}

.side-nav.collapsed:hover .collapse-indicator {
    display: none;
}

.side-nav.collapsed:hover a {
    display: flex;
}

/* --- 手机端：移到底部横排 --- */
@media screen and (max-width: 768px) {
    .side-nav {
        position: fixed;
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        transform: none;
        flex-direction: row;
        justify-content: space-around;
        border-radius: 0;
        padding: 8px;
        gap: 4px;
    }

    .side-nav a {
        font-size: 10px;
        padding: 8px 6px;
    }

    .collapse-indicator {
        display: none !important;
    }

    .side-nav.collapsed {
        padding: 8px;
        right: 0;
    }

    .side-nav.collapsed a {
        display: flex;
    }
}

/* ==================== 通用区块样式 ==================== */
.system-section {
    padding: 20px 20px;
    scroll-margin-top: 120px;    /* 锚点跳转时预留顶部空间 */
}

/* 交替背景色（让区块之间有层次感） */
.section-alt {
    background-color: rgba(20, 15, 40, 0.6);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 区块标题 */

.system-section h1 {
    color: #fff;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.system-section h2 {
    color: #a855f7;
    font-size: 2.2rem;
    margin-bottom: 30px;
}

/* 区块简介文字 */
.section-intro {
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin-bottom: 20px;
}

/* h3 副标题 */
.system-section h3 {
    color: #c084fc;
    font-size: 1.6rem;
    margin-top: 30px;
    margin-bottom: 40px;
}

/* h4 小标题 */
.system-section h4 {
    color: #d8b4fe;
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* 段落 */
.system-section p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 列表 */
.system-section ul {
    color: #ccc;
    line-height: 2;
    padding-left: 20px;
    margin-bottom: 20px;
}

.system-section li {
    margin-bottom: 4px;
}


/* ==================== 媒体占位框（图片/视频预留位置） ==================== */
.media-placeholder {
    width: 100%;
    height: 400px;
    border: 2px dashed #7c3aed;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(124, 58, 237, 0.05);
    margin: 15px 0;
}

.media-placeholder p {
    color: #a855f7;
    font-size: 1rem;
    text-align: center;
}

/* 小号占位框（卡片内使用） */
.media-placeholder-small {
    height: 200px;
    margin: 0 0 20px 0;
}


/* ==================== 技术特性卡片网格 ==================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-card {
    background-color: rgba(30, 20, 60, 0.6);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

.tech-card h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.tech-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ==================== 技术规格表 ==================== */
.specs-table {
    width: 100%;
    margin: 20px 0 40px;
    border-radius: 10px;
    overflow: hidden;
    border-collapse: collapse;
}

.specs-table thead th {
    background-color: #7c3aed;
    color: #fff;
    padding: 14px 20px;
    text-align: left;
    font-size: 0.95rem;
}

.specs-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
    color: #ccc;
    font-size: 0.95rem;
}

.specs-table tbody tr:nth-child(even) {
    background-color: rgba(30, 20, 60, 0.4);
}

.specs-table tbody tr:hover {
    background-color: rgba(168, 85, 247, 0.1);
}


/* ==================== 定价套餐卡片 ==================== */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.pricing-card {
    background-color: rgba(30, 20, 60, 0.6);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card .tech-card-img {
    margin-top: auto;
}

.pricing-card:hover {
    transform: scale(1.03);
}

.pricing-card h4 {
    color: #c084fc;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.pricing-card ul {
    text-align: left;
}


/* ==================== 下载区域 ==================== */
.download-area {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.3);
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}


/* ==================== 服务场景卡片 ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background-color: rgba(30, 20, 60, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.15);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-card .media-placeholder-small {
    border: none;
    border-radius: 0;
    margin: 0;
    background-color: rgba(124, 58, 237, 0.08);
}

.service-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
}

.service-content {
    padding: 24px;
}

.service-content h4 {
    margin-top: 0;
}

/* ==================== 租赁优势卡片 ==================== */
.rental-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.benefit-card {
    background-color: rgba(30, 20, 60, 0.6);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    text-align: center;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefit-card h4 {
    margin-top: 0;
    font-size: 1.1rem;
}


/* ==================== 响应式适配 ==================== */

/* --- 平板 --- */
@media screen and (max-width: 768px) {
    .system-section {
        padding: 50px 16px;
    }

    .system-section h2 {
        font-size: 1.8rem;
    }

    .system-section h3 {
        font-size: 1.3rem;
    }

    .page-nav {
        gap: 6px;
    }

    .page-nav a {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .rental-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .media-placeholder {
        height: 250px;
    }

    .specs-table thead th,
    .specs-table tbody td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}


    .banner-subtitle {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.5rem;
            position: absolute;
            top: 80%;
            left: 5%;
            z-index: 2;
    }

/* --- 手机 --- */
@media screen and (max-width: 480px) {
    .system-section h2 {
        font-size: 1.5rem;
    }

    .page-nav {
        top: 50px;
        gap: 4px;
    }

    .page-nav a {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .tech-grid,
    .pricing-cards,
    .services-grid,
    .rental-benefits {
        grid-template-columns: 1fr;
    }

    .media-placeholder {
        height: 180px;
    }

    .media-placeholder-small {
        height: 150px;
    }
}