/* ==================== 通用样式 ==================== */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2, h3 {
    margin: 0;
    text-align: center;
}

a {
    text-decoration: none;
    color: #007bff;
}

/* ==================== 顶部导航 ==================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #333;
    color: #fff;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

.company-name {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.nav a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.nav a:hover i {
    color: #fff;
}

/* ==================== 主视觉区域 ==================== */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    justify-content: center; 
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

#backgroundCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(120deg, #002244, #005f99);
}

.hero-content {
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.logo-main {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero-button {
    display: inline-block;
    padding: 12px 24px;
    background: #00aaff;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.hero-button:hover {
    background: #005f99;
}

/* ==================== 右侧信息栏 ==================== */
.hero-sidebar {
    position: absolute;
    top: 12px;
    right: 0;
    width: 370px;
    height: 80vh;
    background: rgba(10, 25, 45, 0.95);
    color: #e0f7ff;
    border-left: 1px solid #00aaff33;
    padding: 12px 12px;
    border-radius: 10px 0 0 10px;
    box-shadow: -4px 0 12px rgba(0, 170, 255, 0.2);
    z-index: 10;
    text-align: left;
    overflow: hidden;
}

.hero-sidebar > h2:first-child {
    margin-top: 4px;
    margin-bottom: 6px;
}

.sidebar-scroll {
    height: 100%;
    overflow-y: auto;
    padding-right: 8px;
}

/* 卡片样式 */
.sidebar-item, .group-card {
    background: linear-gradient(135deg, #005f99, #00aaff);
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.2);
    line-height: 1.5;
}

.sidebar-item h3, .group-card h3 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 1px;
    color: #e0f7ff;
}
/* 标题靠左 */
.sidebar-item h3,
.group-card h3 {
    text-align: left;  /* 靠左对齐 */
}

.sidebar-item p, .group-card p {
    font-size: 11px;
    color: #cceeff;
    margin-bottom: 2px;
}

.sidebar-item .tags span, .group-card .tags span {
    font-size: 12px;
    padding: 3px 6px;
    margin-right: 4px;
    border-radius: 4px;
    background: rgba(0, 170, 255, 0.2);
    color: #00d1ff;
}

.sidebar-item .download-btn, .group-card .join-btn {
    font-size: 12px;
    padding: 6px 8px;
    background: #00aaff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin-top: 6px;
    transition: 0.3s;
}

.sidebar-item .download-btn:hover, .group-card .join-btn:hover {
    background: #005f99;
}

/* 群二维码 */
.group-card .group-qr {
    width:60%;
    max-width: 90px;
    display: block;
    margin: 10px 0;
    border-radius: 8px;
}
.group-card a {
    color: #ffffff !important;         /* 链接永远白色 */
    text-decoration: underline;        /* 有下划线，便于识别 */
    font-weight: 500;
}
  .group-card a:hover {
        color: #00eaff; /* 悬停变亮蓝色 */
        text-shadow: 0 0 8px #00eaff; /* 发光效果 */
    }

/* ==================== 视频卡片 ==================== */
/* ==================== 视频卡片整体 ==================== */
.video-card {
    display: flex !important;         /* 启用水平布局 */
    flex-direction: row;              /* 左右排列 */
    align-items: stretch;             /* 高度一致 */
    width: 100%;
    background: #005f99;              /* 卡片背景 */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,170,255,0.3);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 整体悬停效果 */
.video-card:hover {
    transform: translateY(-4px);      /* 悬停时浮起 */
    box-shadow: 0 6px 18px rgba(0,170,255,0.5);
}

/* ==================== 左侧文字区域 ==================== */
.video-card .card-text {
    flex: 3;                          /* 左侧占 3/5 */
    padding: 6px;
    border-right: 2px solid rgba(255,255,255,0.3); /* 竖线 */
    box-sizing: border-box;
    min-width: 0;                      /* 防止文字撑开 */
    display: flex;
    flex-direction: column;            /* 垂直排列文字 + 按钮 */
    justify-content: space-between;
    color: #fff;                       /* 白色文字 */
}

/* ==================== 右侧视频区域 ==================== */
.video-card .card-video-small {
    flex: 3;                           /* 右侧占 2/5 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    box-sizing: border-box;
}

/* 视频缩略图（保持原来的大小） */
.video-card .video-thumb-small {
    width: 100%;
    max-height: 120px;                /* 保持原有尺寸 */
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 缩略图悬停时放大 */
.video-card .card-video-small:hover .video-thumb-small {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,170,255,0.6);
}

/* ==================== 下载按钮 ==================== */

.video-card .download-btn {
    font-size: 10px;
    padding: 6px 6px;
    background: #00aaff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 6px;
    transition: 0.3s;
}

.video-card .download-btn:hover {
    background: #005f99;
}

/* ==================== 模态框 ==================== */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
}

.video-modal video {
    width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,255,255,0.5);
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
}

/* ==================== 视频缩略图上的高级播放按钮 ==================== */
/* ==================== 视频缩略图上的现代播放按钮 ==================== */
.video-card .card-video-small {
    position: relative; /* 为绝对定位的播放按钮提供参考 */
}

/* 半透明渐变圆形按钮 + 高级光晕 */
.video-card .card-video-small::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.7) 0%, rgba(0, 170, 255, 0.2) 70%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.8), 0 0 35px rgba(0, 170, 255, 0.4), 0 0 50px rgba(0, 255, 255, 0.2);
    pointer-events: none;
    animation: pulse-modern 1.5s infinite;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 三角形箭头（微微倾斜，科技感更强） */
.video-card .card-video-small::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-52%, -50%) rotate(2deg); /* 轻微倾斜 */
    width: 0;
    height: 0;
    border-left: 22px solid #fff; /* 稍大三角形 */
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    pointer-events: none;
    transition: transform 0.3s;
}

/* 悬停放大 + 光晕增强 */
.video-card .card-video-small:hover::after {
    transform: translate(-50%, -50%) scale(1.4);
    background: radial-gradient(circle, rgba(0, 170, 255, 1) 0%, rgba(0, 170, 255, 0.5) 70%);
    box-shadow: 0 0 30px rgba(0,170,255,1), 0 0 50px rgba(0,170,255,0.5), 0 0 70px rgba(0,255,255,0.3);
}

.video-card .card-video-small:hover::before {
    transform: translate(-52%, -50%) rotate(2deg) scale(1.4);
}

/* 光晕动画 */
@keyframes pulse-modern {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px rgba(0,170,255,0.7), 0 0 30px rgba(0,170,255,0.3), 0 0 40px rgba(0,255,255,0.1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.07);
        box-shadow: 0 0 25px rgba(0,170,255,0.9), 0 0 40px rgba(0,170,255,0.5), 0 0 55px rgba(0,255,255,0.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 15px rgba(0,170,255,0.7), 0 0 30px rgba(0,170,255,0.3), 0 0 40px rgba(0,255,255,0.1);
    }
}


/* ==================== 产品展示 ==================== */
.products {
    padding: 40px 20px;
    text-align: center;
    background: #eef4f9;
}

.product-card {
    display: inline-block;
    width: 300px;
    margin: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    border-radius: 10px;
}

.product-card .btn {
    margin-top: 10px;
    display: inline-block;
    padding: 8px 15px;
    background: #007bff;
    color: #fff;
    border-radius: 5px;
}

/* ==================== 关于我们 ==================== */
.about {
    padding: 50px 20px;
    background: linear-gradient(120deg, #003366, #005f99);
    text-align: center;
    color: #fff;
}

/* ==================== 页脚 ==================== */
.footer {
    padding: 20px;
    text-align: center;
    background: #333;
    color: #fff;
}

.footer img {
    width: 80px;
    height: auto;
    display: inline-block;
    margin-top: 10px;
    border-radius: 8px;
}

/* ==================== 响应式设计 ==================== */

/* ================ 手机端主视觉字体缩小 ================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;   /* 主标题缩小 */
    }
    .hero-subtitle {
        font-size: 1.2rem; /* 副标题缩小 */
    }
}

@media (max-width: 1024px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
    .nav {
        margin-top: 10px;
        display: flex;
        justify-content: center;
    }
    .nav a {
        margin: 0 10px;
    }
    .hero-sidebar {
        position: static;
        width: 90%;
        margin: 20px auto 0;
        border-left: none;
        border-top: 2px solid #eee;
        border-radius: 10px;
    }
    .sidebar-scroll {
        height: auto;
        overflow-y: visible;
        padding-right: 0;
    }
    .products {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .product-card {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        flex-direction: column;
        padding-bottom: 20px;
    }
    .hero-content {
        margin-bottom: 20px;
    }
    .hero-sidebar {
        position: relative;
        width: 92%;
        height: auto;
        margin: 0 auto;
        border-left: none;
        border-top: 2px solid rgba(0, 170, 255, 0.3);
        border-radius: 10px;
        padding: 10px;
        background: rgba(255,255,255,0.96);
        color: #222;
        box-shadow: none;
    }
    .sidebar-item, .group-card {
        padding: 8px 10px;
        margin-bottom: 10px;
        border-radius: 6px;
    }
    .sidebar-item h3, .group-card h3 {
        font-size: 14px;
    }
    .sidebar-item p, .group-card p {
        font-size: 12px;
    }
    .sidebar-item .tags span, .group-card .tags span {
        font-size: 10px;
        padding: 2px 4px;
    }
    .sidebar-item .download-btn, .group-card .join-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
    .footer {
        font-size: 12px;
    }
    .footer .footer-links {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
