/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    visibility: visible;
    opacity: 1;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
}

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

.nav-logo h1 {
    color: #4CAF50;
    font-size: 1.8rem;
    font-weight: bold;
}

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

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

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

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

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

/* 汉堡菜单按钮样式 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* 移动端导航样式 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        padding: 1rem;
        justify-content: space-between;
        align-items: center;
    }

    .nav-logo {
        margin-right: auto;
    }

    .hamburger-menu {
        display: flex;
        margin-left: auto;
        align-self: center;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        z-index: 1000;
        padding: 0;
        margin: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
        padding: 0;
    }

    .nav-menu a {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        display: block;
        width: 100%;
        text-align: center;
    }

    /* 汉堡菜单动画 */
    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* 通用模块样式 */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.section-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.section-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: left;
    color: #f2f2f2;
    /* 应用与 image-hero 相同的单层模糊阴影与倾斜效果 */
    text-shadow: 6px 6px 8px rgba(0, 0, 0, 0.65);
    letter-spacing: 0.5px;
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    transform: skewX(-8deg);
}

/* 与上传图片一致的标题风格：白色大号字体 + 单层模糊阴影 + 斜体倾斜 */
.image-hero-title {
    font-size: 5rem;
    font-weight: 800;
    color: #f2f2f2;
    display: inline-block;
    margin-bottom: 1rem;
    -webkit-font-smoothing: antialiased;
    /* 单一模糊 text-shadow，替代多层投影 */
    text-shadow: 6px 6px 8px rgba(0, 0, 0, 0.65);
    /* 轻微倾斜以接近图片中的斜体效果 */
    transform: skewX(-8deg);
}

@media (max-width: 768px) {
    .image-hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .image-hero-title {
        font-size: 2.8rem;
        transform: none;
    }
}

/* 背景图片占位符 */
.background-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* 首页英雄模块 */
.hero-section {
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease-out;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #4CAF50;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s ease-out;
}

.cta-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* 关于我们模块 */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

/* about-section 标题与其它 section 对齐：左上角 */
.about-section {
    align-items: flex-start;
}

.about-section .section-content {
    padding-top: 2rem;
}

.about-section .section-title {
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 0.5rem;
    text-align: left;
    display: inline-block;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* 服务模块 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.service-item h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-item p {
    opacity: 0.9;
    line-height: 1.6;
}


/* 画廊轮播图模块 */
.gallery-section {
    padding: 0;
    background-color: black;
}

.gallery-section .section-content {
    max-width: none;
    padding: 2rem 0 0;
}

.gallery-section .section-title {
    margin-left: 8%;
    margin-right: 8%;
}

.carousel-container {
    position: relative;
    width: 80%;
    height: 68vh;
    overflow: hidden;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 3;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #4CAF50;
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #4CAF50;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 联系我们模块 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.contact-item h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-item p {
    opacity: 0.9;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(76, 175, 80, 0.3);
}

.footer-content p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-content a {
    opacity: 0.7;
    font-size: 0.9rem;
    color: #ffffff;
    text-decoration: none;
}

.footer-content a:hover {
    opacity: 0.9;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        margin-top: 1rem;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

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

    .contact-info {
        grid-template-columns: 1fr;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-content {
        padding: 1rem;
    }

    .section-title {
        font-size: 2.8rem;
        transform: none;
    }

    .carousel-container {
        height: 60vh;
    }
}

.logo {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
    transition: filter 0.3s ease;
}

.logo-image-small {
    height: 60px;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.8));
}
