/* CSS 变量 */
:root {
    --color-primary: #2c3e50;
    --color-secondary: #3498db;
    --color-accent: #e67e22;
    --color-success: #27ae60;
    --color-text-primary: #333;
    --color-text-secondary: #7f8c8d;
    --color-bg-light: #f4f4f4;
    --color-white: #fff;
    --font-primary: 'Noto Sans SC', sans-serif;
    --max-width: 1200px;
}

/* 通用样式 */
body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-light);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

.card-link {
    cursor: pointer;
}

.card-link:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 60px;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.8em;
    font-weight: 900;
}

.nav-logo i {
    margin-right: 10px;
    color: var(--color-secondary);
}

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

.nav-menu li {
    position: relative;
}

.nav-link {
    color: var(--color-white);
    font-size: 1.1em;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-link i {
    margin-left: 5px;
    font-size: 0.8em;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2c3e50;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-top: 3px solid #3498db;
    padding: 10px 0;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.95em;
}

.dropdown-content a:hover {
    background-color: #34495e;
    color: #3498db;
}

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

.nav-contact {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: 700;
    color: #3498db;
}

.nav-contact i {
    margin-right: 8px;
}

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

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

/* 英雄区 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    margin-top: 70px; /* Adjust for fixed navbar */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.hero-slider .slide.active {
    opacity: 1;
}

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

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-size: 4em;
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

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

.stat-label {
    font-size: 1em;
    font-weight: 300;
}

.cta-button {
    background-color: #3498db;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2980b9;
}

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

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

.indicator.active {
    background-color: #3498db;
}

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

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

.about-text {
    flex: 1;
}

.about-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555;
}

.about-features {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    flex: 1;
}

.feature i {
    font-size: 3em;
    color: #3498db;
    margin-bottom: 15px;
}

.feature span {
    display: block;
    font-size: 1.1em;
    font-weight: 700;
    color: #2c3e50;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 业务范围区 */
.services {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.service-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-images {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.service-images img.active {
    opacity: 1;
}

.service-content {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-content h3 a {
    color: #2c3e50;
    transition: color 0.3s ease;
}

.service-content h3 a:hover {
    color: #3498db;
}

.service-content p {
    font-size: 1em;
    color: #7f8c8d;
    margin-bottom: 0;
}

/* 项目案例区 */
.projects {
    padding: 80px 0;
    background-color: #fff;
}

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

.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.project-overlay h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.project-overlay p {
    font-size: 0.9em;
    margin-bottom: 0;
}

/* 新闻动态区 */
.news {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.news-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content .news-date {
    display: block;
    font-size: 0.85em;
    color: #95a5a6;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
}

.news-content p {
    font-size: 0.95em;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.news-content .read-more {
    color: #3498db;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-content .read-more:hover {
    color: #2980b9;
}

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

.contact-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.contact-item i {
    font-size: 2.5em;
    color: #3498db;
}

.contact-item h4 {
    margin: 0;
    font-size: 1.2em;
    color: #2c3e50;
}

.contact-item p {
    margin: 5px 0 0;
    color: #555;
}

.contact-form {
    flex: 2;
    min-width: 400px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Noto Sans SC', sans-serif;
    box-sizing: border-box;
}

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

.btn-submit {
    background-color: #3498db;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #2980b9;
}

/* 底部信息 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 50px 0 20px;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

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

.footer-section h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #3498db;
}

.footer-section p,
.footer-section li {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

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

.footer-section i {
    margin-right: 10px;
    color: #3498db;
}

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

/* 新页面通用样式 */
.page-hero {
    position: relative;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    margin-top: 70px; /* Adjust for fixed navbar */
    background: url('images/page_hero_bg.jpg') no-repeat center center/cover; /* Placeholder background */
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.page-hero-title {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-hero-subtitle {
    font-size: 1.2em;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.content-section {
    padding: 60px 0;
    background-color: #fff;
}

.content-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block.reverse {
    flex-direction: row-reverse;
}

.content-block .text-content {
    flex: 1;
}

.content-block .text-content h2 {
    font-size: 2em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
}

.content-block .text-content p {
    font-size: 1.05em;
    color: #555;
    margin-bottom: 15px;
}

.content-block .text-content ul {
    list-style: disc;
    margin-left: 20px;
    color: #555;
}

.content-block .text-content ul li {
    margin-bottom: 10px;
    font-size: 1em;
}

.content-block .text-content ul li strong {
    color: #2c3e50;
}

.content-block .image-content {
    flex: 1;
    text-align: center;
}

.content-block .image-content img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 新闻详情页样式 */
.news-detail-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.news-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.news-detail-content .news-date {
    display: block;
    font-size: 0.9em;
    color: #95a5a6;
    margin-bottom: 20px;
    text-align: right;
}

.news-detail-content h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.news-detail-content p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.8;
    text-indent: 2em;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-menu {
        gap: 20px;
    }

    .hero-title {
        font-size: 3em;
    }

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

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2em;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-features {
        justify-content: center;
    }

    .content-block {
        flex-direction: column;
    }

    .content-block.reverse {
        flex-direction: column;
    }

    .content-block .image-content {
        margin-top: 30px;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-form {
        min-width: unset;
    }

    .page-hero {
        height: 30vh;
    }

    .page-hero-title {
        font-size: 2.5em;
    }

    .page-hero-subtitle {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #2c3e50;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

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

    .nav-menu li {
        text-align: center;
        margin: 10px 0;
    }

    .nav-contact {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border-top: none;
        padding: 0;
        background-color: #34495e;
    }

    .dropdown-content a {
        padding: 10px 20px;
    }

    .hero {
        margin-top: 0;
    }

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

    .hero-subtitle {
        font-size: 1em;
    }

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

    .stat-number {
        font-size: 1.8em;
    }

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

    .section-subtitle {
        font-size: 0.9em;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        min-width: unset;
    }

    .page-hero {
        height: 25vh;
    }

    .page-hero-title {
        font-size: 2em;
    }

    .page-hero-subtitle {
        font-size: 0.9em;
    }

    .news-detail-content {
        padding: 20px;
    }

    .news-detail-image {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.5em;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 0.9em;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1em;
    }

    .page-hero-title {
        font-size: 1.8em;
    }

    .page-hero-subtitle {
        font-size: 0.9em;
    }

    .news-detail-image {
        height: 180px;
    }
}

