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

html {
    scroll-behavior: smooth;
}

.card-link {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.card-link:focus-visible {
    outline: 3px solid #e67e22;
    outline-offset: 4px;
}

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(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    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;
    height: 70px;
}

.nav-logo h1 {
    color: #E67E22;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: -5px;
}

.nav-logo span {
    color: #BDC3C7;
    font-size: 12px;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

.nav-link:hover,
.nav-link.active {
    color: #E67E22;
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ECF0F1;
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域样式 */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    overflow: hidden;
}

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

.geometric-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(230, 126, 34, 0.1);
    border: 2px solid rgba(230, 126, 34, 0.3);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 300px;
    bottom: 20%;
    left: 5%;
    clip-path: polygon(0 0, 100% 30%, 80% 100%, 0% 70%);
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 20%;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.shape-4 {
    width: 250px;
    height: 150px;
    bottom: 10%;
    right: 20%;
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #ECF0F1;
    margin-bottom: 20px;
    line-height: 1.1;
}

.title-line {
    display: block;
    position: relative;
}

.title-line:first-child {
    color: #E67E22;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #BDC3C7;
    margin-bottom: 15px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: #ECF0F1;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

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

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

.btn-primary:hover {
    background: #D35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

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

.btn-secondary:hover {
    background: #ECF0F1;
    color: #2C3E50;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E67E22;
    margin-bottom: 5px;
}

.stat-label {
    color: #BDC3C7;
    font-size: 0.9rem;
}

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

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

.section-title {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #7F8C8D;
    max-width: 600px;
    margin: 0 auto;
}

/* 关于我们样式 */
.about {
    background: #F8F9FA;
}

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

.about-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transform: translateY(0);
    transition: all 0.3s ease;
}

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

.about-card h3 {
    color: #2C3E50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-card p {
    color: #7F8C8D;
    line-height: 1.8;
}

.business-list {
    list-style: none;
}

.business-list li {
    color: #7F8C8D;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.business-list li::before {
    content: '▶';
    color: #E67E22;
    position: absolute;
    left: 0;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.grid-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* 产品中心样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.product-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-image {
    position: relative;
    width: 100%;
    height: 100%;
}

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

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

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .card-overlay {
    transform: translateY(0);
}

.card-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* 服务项目样式 */
.services {
    background: #F8F9FA;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #E67E22, #D35400);
    transition: all 0.3s ease;
}

.service-item:hover::before {
    left: 0;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #E67E22;
}

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

.service-item h3 {
    color: #2C3E50;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-item p {
    color: #7F8C8D;
    line-height: 1.6;
}

/* 工程案例样式 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

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

.case-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.case-content {
    padding: 25px;
}

.case-content h3 {
    color: #2C3E50;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.case-content p {
    color: #7F8C8D;
    line-height: 1.6;
}

/* 联系我们样式 */
.contact {
    background: #F8F9FA;
}

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

.info-item {
    margin-bottom: 30px;
}

.info-item h3 {
    color: #2C3E50;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-item p {
    color: #7F8C8D;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ECF0F1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E67E22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

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

/* 页脚样式 */
.footer {
    background: #2C3E50;
    color: #ECF0F1;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: #E67E22;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: #BDC3C7;
    line-height: 1.6;
    margin-bottom: 8px;
}

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

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

.footer-section a:hover {
    color: #E67E22;
}

.footer-bottom {
    border-top: 1px solid #34495E;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #95A5A6;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(44, 62, 80, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .products-grid,
    .services-container,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .hero-stats {
        flex-direction: column;
    }
}



.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2C3E50;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
    top: 100%; /* Position below the parent link */
    left: 0;
}

.dropdown-content a {
    color: #ECF0F1;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 400;
}

.dropdown-content a:hover {
    background-color: #34495E;
    color: #E67E22;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 0.8em;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Adjust nav-menu gap for dropdowns */
.nav-menu .dropdown {
    margin-right: -10px; /* Adjust as needed to maintain spacing */
}

/* Responsive adjustments for dropdowns */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        width: 100%;
        background: rgba(44, 62, 80, 0.98);
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px 0;
        display: none; /* Hidden by default on mobile */
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        padding: 15px 0;
        display: block;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        background-color: #34495E;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .dropdown-content a {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .dropdown-arrow {
        display: none; /* Hide arrow on mobile dropdown */
    }
}

