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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: bold;
    color: #4CAF50;
    z-index: 1001;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.08);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #4CAF50;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 30px;
}

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

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #4CAF50;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

/* 导航遮罩层 */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* 语言切换器样式 */
.language-selector {
    position: relative;
    margin-left: 20px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    padding: 8px 0;
}

.lang-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    position: relative;
}

.lang-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #4CAF50;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.lang-item:hover {
    background: #f0f9f1;
    color: #4CAF50;
    padding-left: 24px;
}

.lang-item:hover::before {
    transform: scaleY(1);
}

.lang-item.active {
    background: #e8f5e9;
    color: #4CAF50;
    font-weight: 600;
    padding-left: 24px;
}

.lang-item.active::before {
    transform: scaleY(1);
}

.lang-item.active:hover {
    background: #e8f5e9;
}

/* Hero区域样式 */
.hero {
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: -1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #4CAF50;
}

.hero h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #45a049;
}

/* 关于我们区域样式 */
.about {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 30px;
    color: #4CAF50;
    font-size: 2rem;
}

.about-text p {
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.8;
    color: #666;
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* 服务项目区域样式 */
.services {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #4CAF50;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.service-img {
    margin: -30px -30px 20px;
    overflow: hidden;
    height: 200px;
}

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

@media (min-width: 769px) {
    .service-img {
        aspect-ratio: 4 / 3;
        height: auto;
    }
}

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

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.service-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4CAF50;
}

.service-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

/* 联系我们区域样式 */
.contact {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    max-width: 500px;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 40px;
    color: #4CAF50;
    font-size: 2rem;
}

/* 图片展示区域样式 */
.gallery {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #4CAF50;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

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

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

/* 联系信息样式 */
.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4CAF50;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

/* 地址图标 */
.icon-location::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 3px solid white;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
    top: -2px;
}

.icon-location::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

/* 交通图标 */
.icon-transport::before {
    content: '';
    width: 24px;
    height: 16px;
    border: 3px solid white;
    border-radius: 4px;
    position: relative;
}

.icon-transport::after {
    content: '';
    width: 20px;
    height: 2px;
    background-color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 时间图标 */
.icon-time::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid white;
    border-radius: 50%;
    position: relative;
}

.icon-time::after {
    content: '';
    width: 2px;
    height: 10px;
    background-color: white;
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: bottom;
}

.info-content h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 10px;
}

.contact-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 1rem;
}

.phone-btn {
    background-color: #0d9488;
    color: white;
}

.phone-btn:hover {
    background-color: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 148, 136, 0.3);
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background-color: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.contact-map {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* 导航栏优化 */
    .navbar {
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }

    .navbar .container {
        height: 65px;
        padding: 0 20px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .logo img {
        height: 38px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 65px;
        right: -100%;
        width: 300px;
        max-width: 85%;
        height: calc(100vh - 65px);
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 20px;
        z-index: 999;
        display: flex;
        flex-direction: column;
        gap: 5px;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 0;
        padding: 14px 20px;
        font-size: 1.05rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        color: #444;
        position: relative;
        overflow: hidden;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background-color: rgba(76, 175, 80, 0.08);
        transform: translateX(5px);
    }

    /* 移动端语言切换器 */
    .language-selector {
        width: 100%;
        margin-left: 0;
        padding: 15px 25px;
        border-top: 1px solid #f0f0f0;
    }

    .lang-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
        box-shadow: 0 3px 10px rgba(76, 175, 80, 0.25);
    }

    .lang-btn:hover {
        transform: none;
    }

    .lang-menu {
        position: static;
        margin-top: 12px;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }

    .lang-menu.active {
        transform: none;
    }

    .lang-item {
        padding: 12px 20px;
        text-align: center;
        border-radius: 8px;
        margin-bottom: 8px;
        background: #f9f9f9;
    }

    .lang-item:hover {
        padding-left: 20px;
    }

    .lang-item.active {
        padding-left: 20px;
    }

    .lang-item::before {
        display: none;
    }

    /* Hero区域优化 */
    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

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

    .cta-button {
        padding: 12px 35px;
        font-size: 1rem;
    }

    /* 关于我们优化 */
    .about {
        padding: 60px 0;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-text h2 {
        text-align: center;
        font-size: 1.8rem;
    }

    .about-text p {
        text-align: center;
        font-size: 0.95rem;
    }

    .about-image {
        max-width: 100%;
    }

    /* 服务项目优化 */
    .services {
        padding: 60px 0;
    }

    .services h2 {
        font-size: 1.8rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-item {
        padding: 25px;
    }

    .service-img {
        margin: -25px -25px 15px;
        height: 200px;
    }

    /* 环境展示优化 */
    .gallery {
        padding: 60px 0;
    }

    .gallery h2 {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-item {
        height: 180px;
    }

    /* 联系我们优化 */
    .contact {
        padding: 60px 0;
    }

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

    .contact-info {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-info h2 {
        text-align: center;
        font-size: 1.8rem;
        width: 100%;
    }

    .info-item {
        margin-bottom: 25px;
        width: 100%;
        max-width: 400px;
    }

    .info-item .icon {
        width: 45px;
        height: 45px;
    }

    .info-content h3 {
        font-size: 1rem;
    }

    .info-content p {
        font-size: 0.9rem;
    }

    .contact-map {
        width: 100%;
    }

    .contact-map iframe {
        height: 350px;
        border-radius: 10px;
    }

    .contact-buttons {
        margin-top: 30px;
        width: 100%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        padding: 14px 25px;
        font-size: 1rem;
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* 导航栏小屏优化 */
    .navbar .container {
        height: 55px;
        padding: 0 15px;
    }

    .logo {
        font-size: 1.1rem;
        gap: 8px;
    }

    .logo img {
        height: 35px;
    }

    .menu-toggle {
        width: 28px;
        height: 22px;
    }

    .menu-toggle span {
        height: 2.5px;
    }

    .nav-links {
        top: 55px;
        height: calc(100vh - 55px);
        width: 250px;
    }

    .nav-links a {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    /* Hero区域小屏优化 */
    .hero {
        padding: 115px 0 50px;
    }

    .hero h1 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .hero h2 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    /* 各区域小屏优化 */
    .about, .services, .gallery, .contact {
        padding: 40px 0;
    }

    .about h2, .services h2, .gallery h2, .contact-info h2 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .about-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* 服务项目小屏优化 */
    .service-item {
        padding: 20px;
    }

    .service-img {
        margin: -20px -20px 15px;
        height: 180px;
    }

    .service-item h3 {
        font-size: 1.1rem;
    }

    .service-item p {
        font-size: 0.9rem;
    }

    .service-footer {
        margin-top: 15px;
        padding-top: 12px;
        gap: 10px;
    }

    .service-price {
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .service-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* 环境展示小屏优化 */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-item {
        height: 220px;
    }

    /* 联系我们小屏优化 */
    .contact-info {
        align-items: center;
    }

    .info-item {
        gap: 15px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 350px;
    }

    .info-item .icon {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }

    /* 地址图标调整 */
    .icon-location::before {
        width: 15px;
        height: 15px;
        border-width: 2.5px;
    }

    .icon-location::after {
        width: 6px;
        height: 6px;
        top: 13px;
    }

    /* 交通图标调整 */
    .icon-transport::before {
        width: 20px;
        height: 14px;
        border-width: 2.5px;
    }

    .icon-transport::after {
        width: 16px;
    }

    /* 时间图标调整 */
    .icon-time::before {
        width: 20px;
        height: 20px;
        border-width: 2.5px;
    }

    .icon-time::after {
        height: 8px;
        top: 12px;
    }

    .info-content h3 {
        font-size: 0.95rem;
    }

    .info-content p {
        font-size: 0.85rem;
    }

    .contact-map {
        width: 100%;
    }

    .contact-map iframe {
        height: 300px;
        border-radius: 8px;
    }

    .contact-buttons {
        gap: 12px;
        margin-top: 25px;
        width: 100%;
        max-width: 350px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        padding: 14px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 350px;
    }

    .contact-btn .btn-icon {
        width: 26px;
        height: 26px;
        font-size: 0.95rem;
    }

    /* 页脚优化 */
    footer {
        padding: 15px 0;
        font-size: 0.85rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.4rem;
    }

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

    .logo span {
        font-size: 1rem;
    }

    .contact-btn {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
}
