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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0e17;
}

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

/* 头部导航 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #1a2332;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-main {
    height: 32px;
    width: auto;
    margin: 0 5px 0 10px;
}

.logo-text {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FF5E63;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #FF5E63;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: #e0e0e0;
    transition: all 0.3s ease;
}

/* Hero 区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e17 0%, #1a2332 50%, #0f141f 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.hero-bg-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 94, 99, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 94, 99, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-height: 45px;
    width: auto;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: #a0a0a0;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #808080;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* 核心业务区域 */
.services {
    padding: 8rem 0;
    background-color: #0f141f;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #ffffff;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FF5E63, #FF8A8F);
    margin: 1.5rem auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.8), rgba(15, 20, 31, 0.8));
    border: 1px solid #1a2332;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF5E63, #FF8A8F);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #FF5E63;
    box-shadow: 0 10px 30px rgba(255, 94, 99, 0.1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #FF5E63;
    margin-bottom: 1rem;
}

.service-card p {
    color: #a0a0a0;
    line-height: 1.7;
}

/* 关于我们区域 */
.about {
    padding: 8rem 0;
    background-color: #0a0e17;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #a0a0a0;
    margin-bottom: 1.5rem;
}

/* 联系方式区域 */
.contact {
    padding: 8rem 0;
    background-color: #0f141f;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.3rem;
    color: #FF5E63;
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid #FF5E63;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-email:hover {
    background-color: #FF5E63;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 94, 99, 0.3);
}

/* 页脚 */
.footer {
    padding: 3rem 0;
    background-color: #0a0e17;
    border-top: 1px solid #1a2332;
    text-align: center;
}

.footer p {
    color: #606060;
    font-size: 0.9rem;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(10, 14, 23, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        border-bottom: 1px solid #1a2332;
    }

    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-logo {
        height: 2.5rem;
        width: auto;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-bg-video {
        opacity: 0.2;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        height: 2rem;
        width: auto;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }
}
