/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --bg-light: #f8f9fa;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* 首屏Banner */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 5px;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-content .sub {
    font-size: 16px;
    opacity: 0.7;
    margin-top: 20px;
}

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

/* 通用区块样式 */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--light-text);
    margin-bottom: 60px;
}

/* 关于我们 */
.about-section {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.feature-item {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 14px;
    color: var(--light-text);
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.tech-highlight {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 50px;
    border-radius: 20px;
    color: var(--white);
    text-align: center;
}

.tech-highlight h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.tech-highlight p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.tech-note {
    color: #ffd700 !important;
    font-weight: 500;
    margin-top: 20px !important;
}

/* 产品系列 */
.products-section {
    background: var(--bg-light);
}

.product-category {
    margin-bottom: 60px;
}

.product-category h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-category h3 i {
    color: var(--accent-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.product-info p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
}

.product-info ul {
    font-size: 13px;
    color: var(--light-text);
}

.product-info ul li {
    padding: 4px 0;
    padding-left: 15px;
    position: relative;
}

.product-info ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* 五核光引擎技术 */
.tech-features {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    margin-top: 60px;
}

.tech-features h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.tech-card {
    text-align: center;
    padding: 30px 15px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.tech-card:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tech-card:hover .tech-icon,
.tech-card:hover h4,
.tech-card:hover p {
    color: var(--white);
}

.tech-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.tech-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tech-card p {
    font-size: 13px;
    color: var(--light-text);
    line-height: 1.5;
}

/* 案例展示 */
.cases-section {
    background: var(--white);
}

.cases-category {
    margin-bottom: 60px;
}

.cases-category h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.cases-category h3 i {
    color: var(--accent-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-light);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-card video {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.video-info p {
    font-size: 13px;
    color: var(--light-text);
}

/* 图片画廊 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 30px 15px 15px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* 联系我们 */
.contact-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 28px;
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-item p {
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.6;
}

.contact-qr {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: var(--white);
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.qr-item p {
    font-size: 14px;
    opacity: 0.8;
}

/* 页脚 */
.footer {
    background: #0a0a15;
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-qr {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* 视频缩略图样式 - 优化带宽加载 */
.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #000;
    margin-bottom: 15px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.video-thumbnail .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 163, 224, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 163, 224, 0.4);
}

.video-thumbnail .play-button i {
    color: white;
    font-size: 28px;
    margin-left: 4px;
}

.video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 163, 224, 1);
}

.video-thumbnail .video-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    text-align: left;
}

.video-thumbnail .video-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.video-thumbnail .video-desc-text {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* 播放中状态 */
.video-thumbnail.playing .play-button {
    display: none;
}

.video-thumbnail.playing .video-overlay-text {
    display: none;
}

/* 视频卡片样式优化 */
.video-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

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

.video-info {
    padding: 20px;
}

.video-info h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.video-info p {
    font-size: 14px;
    color: var(--text-light);
}
