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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo h2 {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页横幅 */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/back.jpg') center/cover;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    color: white;
    padding: 0 20px;
    max-width: 600px;
    margin-left: 10%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.4s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #2c3e50;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('/images/back.jpg') center/cover;
    opacity: 0.3;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3498db;
}

.section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* 公司介绍 */
.about {
    background: #f8f9fa;
}

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

.about-text h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #7f8c8d;
    font-weight: 500;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 主营业务 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.service-card:not(:nth-child(2)) {
    padding-bottom: 60px;
}

.service-icon {
    margin: 0 auto 20px auto;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon i {
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-card p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* 仅让第二张卡的段落填充空间 */
.service-card:nth-child(2) p {
    flex-grow: 1;
}

/* 其他卡通过伪元素填充空间，将列表上推 */
.service-card:not(:nth-child(2))::after {
    content: '';
    display: block;
    flex-grow: 1;
}

.service-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

/* 民宿と消防のリストを一行下げる */
.service-card:nth-child(3) ul,
.service-card:nth-child(4) ul {
    margin-top: 1.6rem; /* 1行分のスペースを追加 */
}

.service-card li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.service-card li::before {
    content: '✔';
    color: #3498db;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 业务经验 */
.projects {
    background: #f8f9fa;
}

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

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.project-image {
    height: 200px;
    overflow: hidden;
}

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

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

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-category {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-content p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-details {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #95a5a6;
}

.project-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* 招募新人 */
.recruitment {
    background: white;
}

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

.recruitment-info h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.recruitment-info p {
    color: #7f8c8d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.job-positions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.job-position {
    background: #f8f9fa;
    padding: 3.5rem 2.5rem;
    border-radius: 15px;
    border-left: 4px solid #3498db;
    text-align: left;
    min-height: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-position:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.1);
}

.job-position h4 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

.job-position h4 i {
    color: #3498db;
    font-size: 1.4rem;
    background: rgba(52, 152, 219, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-position p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.1rem;
    background: rgba(52, 152, 219, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.job-position ul {
    list-style: none;
}

.job-position ul li {
    color: #555;
    padding: 0.9rem 0;
    position: relative;
    padding-left: 1.8rem;
    font-size: 1.05rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.job-position ul li:before {
    content: '✓';
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* 联系我们 */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    width: 30px;
}

.contact-item div h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-item div p {
    color: #7f8c8d;
    margin: 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-section {
    flex: 1 1 0;
    min-width: 180px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* 連絡先部分的特殊样式 */
.contact-section {
    min-width: 180px !important;
    max-width: 300px;
}

.contact-section .contact-phone,
.contact-section .contact-email,
.contact-section .contact-address {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.contact-section .contact-phone a,
.contact-section .contact-email a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #95a5a6;
}
/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 关于页面样式 */
.page-header {
    background: linear-gradient(rgba(52, 152, 219, 0.9), rgba(52, 152, 219, 0.9)), url('/images/hero-bg.jpg') center/cover;
    color: white;
    text-align: center;
    padding: 120px 0 80px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: #7f8c8d;
    line-height: 1.8;
    font-size: 1.1rem;
}

.company-stats {
    display: flex;
    justify-content: space-around;
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

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

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    display: block;
}

.stat-item .label {
    color: #7f8c8d;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* 卡片公司信息样式追加 */
.company-info-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
    justify-content: center;
}

.company-card {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(44,62,80,0.10);
    padding: 40px 36px;
    min-width: 320px;
    max-width: 560px;
    flex: 1 1 400px;
    margin-bottom: 32px;
}

.company-card h3 {
    font-size: 1.6rem;
    color: #3498db;
    margin-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
}

.company-card div {
    margin-bottom: 20px;
    font-size: 1.15rem;
    color: #333;
    line-height: 1.8;
}

.company-card iframe {
    border-radius: 8px;
    min-height: 360px;
    max-height: 420px;
}

.map-card {
    min-width: 320px !important;
    max-width: 560px !important;
    flex: 1 1 400px !important;
    width: auto !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.map-card div {
    margin-bottom: 0 !important;
    width: 100% !important;
    height: 480px !important;
}

.map-card iframe {
    width: 100% !important;
    height: 480px !important;
    min-height: 480px !important;
    max-height: 480px !important;
    border-radius: 0 !important;
    border: none !important;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .job-positions {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .contact-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .map-card {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .map-card div {
        height: 300px !important;
    }

    .map-card iframe {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
        border-radius: 0 !important;
    }

    .footer-content {
        flex-wrap: wrap;
        gap: 2rem;
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 1rem;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.5rem;
        display: block;
        width: 100%;
        text-align: center;
    }

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

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

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

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid,
    .projects-grid,
    .job-positions {
        grid-template-columns: 1fr;
    }

    .company-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }

    .contact-section {
        width: 100%;
        text-align: center;
        padding: 0 1rem;
    }

    .contact-section .contact-phone,
    .contact-section .contact-email,
    .contact-section .contact-address {
        text-align: center;
        display: block;
        margin: 0.5rem auto;
        font-size: 0.95rem;
    }

    .contact-section .contact-email {
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow: visible !important;
    }

    .container {
        padding: 0 15px;
    }

    .service-card,
    .project-card,
    .job-position {
        padding: 1.5rem;
        height: auto;
    }

    .service-card p,
    .project-card p,
    .job-position p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .service-card ul,
    .job-position ul {
        padding-left: 0;
    }

    .service-card li,
    .job-position li {
        font-size: 0.95rem;
        padding: 0.5rem 0;
        padding-left: 1.5rem;
    }
}

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

    .hero {
        height: 70vh;
        text-align: center;
    }

    .hero-content {
        margin-left: 0;
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

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

    .section-header h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .service-card,
    .project-card,
    .job-position {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-section,
    .contact-section {
        width: 100%;
        text-align: center;
        padding: 0 1rem;
    }

    .contact-section .contact-phone,
    .contact-section .contact-email,
    .contact-section .contact-address {
        text-align: center;
        display: block;
        margin: 0.5rem auto;
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .footer-section ul {
        text-align: center;
    }

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}