/* ========== 全局样式 ========== */
/* 全局样式重置，清除默认边距和内边距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 定义颜色变量，方便统一修改颜色 */
:root {
    --primary-blue: #1a73e8;      /* 主蓝色，用于头部和底部 */
    --dark-blue: #0d47a1;         /* 深蓝色，用于 Hero 区域 */
    --light-blue: #e8f0fe;        /* 浅蓝色，用于背景 */
    --text-dark: #202124;         /* 深色文字 */
    --text-light: #ffffff;        /* 白色文字 */
    --gray: #5f6368;              /* 灰色文字 */
    --light-gray: #f8f9fa;        /* 浅灰色背景 */
}

/* 网页主体样式 */
body {
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========== 头部样式 ========== */
header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 54.4px;
    height: 80.6px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 5px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
    position: relative;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 0.5rem 0;
    display: block;
}

nav ul li a:hover {
    opacity: 0.9;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-blue);
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

nav ul li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu li a {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
}

.menu-arrow {
    margin-left: 5px;
    font-size: 0.8rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ========== Hero 区域 ========== */
.hero {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ========== 视频区域 ========== */
.video-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.video-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.video-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding-bottom: 56.25%;
    background: #000;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.video-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    font-size: 5rem;
    color: white;
    opacity: 0.9;
    cursor: pointer;
    transition: transform 0.3s;
}

.play-icon:hover {
    transform: scale(1.1);
}

.video-title {
    text-align: center;
    margin-top: 2rem;
}

.video-title h2 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.video-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== 公司介绍区域 ========== */
.company-intro {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-blue);
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-text h3 {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.intro-text p {
    color: var(--gray);
    margin-bottom: 1rem;
    text-align: justify;
}

.intro-image {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 300px;
}

.image-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-wrapper img:hover {
    transform: scale(1.02);
}

/* ========== 9 宫格图片展示区域 ========== */
.gallery-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.gallery-caption h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ========== 底部区域 ========== */
footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--text-light);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-menu a:hover {
    opacity: 1;
    padding-left: 10px;
}

.footer-menu a i {
    margin-right: 10px;
    width: 20px;
}

.footer-info p {
    margin-bottom: 1rem;
    opacity: 0.8;
    display: flex;
    align-items: flex-start;
}

.footer-info i {
    margin-right: 10px;
    margin-top: 5px;
    width: 20px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 1rem;
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--light-blue);
}

.footer-contact i {
    margin-right: 10px;
    width: 20px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--text-light);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    
    nav ul.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 0.8rem 0;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        display: none;
    }
    
    nav ul li:hover .submenu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}