/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

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

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

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

.nav-link:hover {
    color: #ffffff;
}

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

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

/* Breadcrumb in gallery nav */
.breadcrumb-sep {
    color: #aaaaaa;
    user-select: none;
}

.current-page {
    color: #ffffff;
    opacity: 0.85;
    cursor: default;
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 26, 26, 0.7), rgba(26, 26, 26, 0.4));
    z-index: -1;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    transform: translateY(-50%);
}

.slider-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot.active,
.dot:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background-color: #333333;
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #333333;
}

.cta-button:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* Section Styles */
section {
    padding: 80px 0;
}

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

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

/* About Us Section */
.about {
    background-color: #2a2a2a;
}

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

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #d0d0d0;
}

.slogan {
    margin-top: 2rem;
}

.slogan h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

/* Projects Section */
.projects {
    background-color: #1a1a1a;
    padding: 100px 0;
}

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

.project-item {
    position: relative;
    min-height: 400px;
    max-height: 500px;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: scale(1.02);
}

.project-image {
    flex: 1;
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

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

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    background: linear-gradient(135deg, #333333, #2a2a2a);
    padding: 1.5rem;
    color: #ffffff;
    text-align: center;
    border-top: 3px solid #ffffff;
}

.project-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Services Section */
.services {
    background-color: #2a2a2a;
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.service-item {
    display: flex;
    background-color: #333333;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 140px;
}

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

.service-image {
    width: 160px;
    height: 140px;
    flex-shrink: 0;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}

.service-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #d0d0d0;
    margin: 0;
}

/* Video Section */
.video {
    background-color: #1a1a1a;
    padding: 60px 0;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.video-placeholder {
    background-color: #333333;
    border-radius: 10px;
    padding: 60px 20px;
    text-align: center;
    border: 2px dashed #666666;
}

.video-placeholder p {
    font-size: 1.1rem;
    color: #d0d0d0;
    margin-bottom: 10px;
}

/* Contact Section */
.contact {
    background-color: #2a2a2a;
    padding: 80px 0;
}

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

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

.contact-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.contact-item p {
    font-size: 1.1rem;
    color: #d0d0d0;
}

.qr-code {
    margin-top: 10px;
}

.qr-code img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    border: 2px solid #666666;
}

.contact-form {
    background-color: #333333;
    padding: 30px;
    border-radius: 10px;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #666666;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
}

.submit-btn {
    background-color: #333333;
    color: #ffffff;
    padding: 12px 30px;
    border: 2px solid #333333;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333333;
}

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

/* Gallery */
.gallery-hero {
    padding-top: 120px;
    padding-bottom: 0;
    background-color: #1a1a1a;
}

/* Gallery top nav chips 现在嵌入到导航条中，沿用 .nav-link 样式 */

.gallery {
    background-color: #1a1a1a;
}

.gallery-section {
    padding: 80px 0 0 0;
    scroll-margin-top: 90px; /* 锚点滚动时留出导航高度 */
}

.gallery-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.gallery-stack {
    display: flex;
    flex-direction: column;
}

.gallery-photo {
    min-height: 100vh; /* 单张图片一屏 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    border-top: 1px solid #222;
}

.gallery-photo-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* 留出边距避免贴边 */
}

.gallery-photo img {
    max-width: 100%;
    max-height: calc(100vh - 160px); /* 扣除顶部导航与内边距 */
    height: auto;
    width: auto;
    object-fit: contain; /* 不裁剪，保持比例 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    border-radius: 6px;
}

@media (max-width: 768px) {
    .gallery-photo img {
        max-height: calc(100vh - 140px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(26, 26, 26, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }

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

    .nav-toggle {
        display: flex;
    }

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

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

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

    .slider-controls {
        padding: 0 10px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .slider-dots {
        bottom: 20px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .service-item {
        flex-direction: column;
        height: auto;
    }

    .service-image {
        width: 100%;
        height: 200px;
    }

    .service-content {
        padding: 20px;
    }

    .service-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .service-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

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

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

    .slogan h3 {
        font-size: 1.5rem;
    }
}
