:root {
    --china-red: #C91F37;
    --china-green: #008844;
    --rice-white: #F5F2EB;
    --dark-text: #333333;
    --light-text: #666666;
    --border-color: #E0D8C7;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px; /* Offset for sticky navbar, applied globally */
}

body {
    background-color: var(--rice-white);
    color: var(--dark-text);
    line-height: 1.6;
}

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

/* 导航栏样式 */
.navbar {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--china-red);
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav {
    margin-left: auto;
    order: 2;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--china-red);
}

.language-switch {
    display: flex;
    gap: 10px;
    order: 1;
    margin-right: 15px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn.active {
    background-color: var(--china-red);
    color: white;
    border-color: var(--china-red);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 110;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-text);
    transition: all 0.3s ease-in-out;
}

/* Banner轮播图样式 */
.banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    /* aspect-ratio: 16 / 9; */
    /* min-height: 400px; */
    /* max-height: 800px; */
    background: #2c2c2c;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: height 0.4s ease-in-out;
}

.banner-button-container {
    position: absolute;
    bottom: 15%; /* Position in the lower part */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 30px;
}

.banner-button-container .btn {
    /* Enlarge button by 50% */
    font-size: 21px; /* From ~14px */
    padding: 21px 45px; /* From 14px 30px */
    border-radius: 12px; /* From 8px */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Cleanup old styles */
.banner-title-container,
.main-title,
.banner-text {
    display: none;
}
.banner-text .main-title {
    margin-bottom: 0;
}
.banner-buttons {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--china-red);
    color: white;
}

.btn-primary:hover {
    background-color: #A51A2C;
}

.btn-secondary {
    background-color: rgba(128, 128, 128, 0.8);
    color: white;
    margin-left: 30px;
}

.btn-secondary:hover {
    background-color: #666666;
}

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

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

.slide.active {
    opacity: 1;
}

.slide img {
    display: block;
    width: 100%;
    height: auto;
    /* object-fit: cover; */
    /* object-position: center; */
}

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

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

.indicator.active {
    background-color: var(--china-red);
    transform: scale(1.2);
}

/* 通用部分样式 */
section {
    padding: 80px 0;
}

h2 {
    font-size: 36px;
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--china-red);
    margin: 15px auto 0;
}

/* 关于我们样式 */
.about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.about-item {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--china-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.about-item h3 {
    color: var(--china-red);
    margin-bottom: 15px;
    font-size: 22px;
}

.about-item p {
    color: var(--light-text);
    flex-grow: 1;
}

.about-item--featured {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border: none;
    border-radius: 12px;
    position: relative;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transform: scale(1.02); /* Slighty larger to stand out */
}

.about-item--featured h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
}

.about-item--featured p {
    font-size: 16px;
    line-height: 1.8;
}

.about-item--two {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border: none;
    border-radius: 12px;
    position: relative;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transform: scale(1.02);
}

.about-item--two h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--china-red);
}

.about-item--two p {
    font-size: 16px;
    line-height: 1.8;
}

.about-item__memo {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(224, 216, 199, 0.3);
    border-left: 4px solid var(--china-red);
    font-size: 14px;
    color: #5c5c5c;
    border-radius: 0 8px 8px 0;
}


.highlight-red {
    color: var(--china-red);
    font-weight: bold;
}

.about-clients h3 {
    color: var(--dark-text);
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

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

.client-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.client-card:hover {
    transform: translateY(-5px);
}

.client-icon {
    width: 50px;
    height: 50px;
    background-color: var(--china-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 15px;
}

.client-card p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.4;
}

/* 核心服务样式 */
.services {
    background-color: var(--rice-white);
}

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

.service-card {
    background-color: white;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.35s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top-color: var(--china-red);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--china-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 25px;
    transition: all 0.35s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
    background-color: #fff;
    color: var(--china-red);
    box-shadow: 0 0 0 2px var(--china-red);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-text);
    font-size: 20px;
    font-weight: 600;
}

.service-card p {
    color: var(--light-text);
    font-size: 15px;
    line-height: 1.7;
}

.service-card--cta {
    background-color: var(--rice-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top-color: var(--china-red);
}

.service-card--cta h3 {
    color: var(--dark-text);
}

.service-card--cta p {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.btn-cta {
    background: var(--china-red);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(201, 31, 55, 0.2);
}

.btn-cta:hover {
    background: #A51A2C;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 31, 55, 0.3);
}

/* 核心优势样式 */
.advantages {
    background-color: white;
}

.advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: none;
}

.advantage-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.advantage-number {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 72px;
    font-weight: 700;
    color: var(--china-red);
    opacity: 0.08;
    line-height: 1;
    z-index: 1;
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
}

.advantage-content {
    position: relative;
    z-index: 2;
}

.advantage-content h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--china-red);
    min-height: 60px; /* Force a consistent height for all titles to align paragraphs below */
}

.advantage-content p {
    color: var(--light-text);
    font-size: 15px;
    line-height: 1.7;
}

/* 案例展示 */
.cases {
    background-color: var(--rice-white);
}

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

.case-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

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

.case-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e9e5d9;
}

.case-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.case-content p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-tags span {
    background-color: var(--rice-white);
    color: var(--china-red);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}


/* 合作流程样式 */
.process {
    background-color: white;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--light-text);
    margin-top: -30px;
    margin-bottom: 60px;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.process-step {
    flex: 1;
    text-align: center;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--rice-white);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.process-step:hover .step-icon-wrapper {
    transform: translateY(-5px) scale(1.05);
    background: var(--china-red);
    box-shadow: 0 8px 25px rgba(201, 31, 55, 0.25);
}

.process-step:hover .step-number {
    color: white;
}

.step-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--china-red);
    transition: color 0.3s ease;
}

.process-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.process-step p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.5;
}

.process-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23cccccc'%3E%3Cpath d='M16.172 11l-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    align-self: center;
    margin-top: -60px;
}

.process-button {
    text-align: center;
    margin-top: 60px;
}

/* 新闻动态样式 */
.news {
    background-color: var(--rice-white);
}

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

.news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

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

.news-image-placeholder {
    height: 200px;
    background-color: #e9e5d9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 24 24' fill='none' stroke='%23C91F37' stroke-width='1' stroke-linecap='round' stroke-linejoin='round' class='feather feather-image'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50px;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-title a {
    text-decoration: none;
    color: var(--dark-text);
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--china-red);
}

.news-meta {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.news-summary {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.news-read-more {
    display: inline-block;
    align-self: flex-end;
    color: var(--china-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s;
}

.news-read-more:hover {
    transform: translateX(4px);
}

/* 合作伙伴样式 */
.partners {
    background-color: white;
    padding: 60px 0;
}

.partner-category {
    margin-bottom: 40px;
}

.partner-category:last-child {
    margin-bottom: 0;
}

.partner-category h3 {
    font-size: 22px;
    color: var(--dark-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.partner-item {
    background: var(--rice-white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--light-text);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--china-red);
    color: var(--china-red);
}

.partner-list-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.partner-list-subtitle {
    font-size: 20px;
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 25px;
}

.partner-list-columns ul {
    list-style: none;
    padding-left: 0;
    column-count: 3;
    column-gap: 40px;
}

.partner-list-columns li {
    font-size: 15px;
    color: var(--light-text);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.partner-list-columns li::before {
    content: '•';
    color: var(--china-red);
    font-weight: bold;
    display: inline-block;
    width: 20px;
    margin-left: -20px;
    position: absolute;
    left: 0;
}

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

@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease-in-out;
        z-index: 105;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .main-nav.is-active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .main-nav li {
        margin-left: 0;
    }

    .main-nav a {
        font-size: 22px;
        color: var(--dark-text);
    }

    .hamburger {
        display: block;
    }

    .hamburger.is-active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.is-active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .advantage-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .advantage-number {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
    }

    .process-arrow {
        transform: rotate(90deg);
        margin: -20px auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact h4 {
        border-bottom: 1px solid #555;
        display: inline-block;
        padding-bottom: 5px;
    }

    .partner-list-columns ul {
        column-count: 2;
    }

}

@media (max-width: 576px) {
    h2 {
        font-size: 28px;
    }

    section {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    .banner {
        min-height: 300px;
        aspect-ratio: 4 / 3;
    }
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .banner-button-container {
        flex-direction: column;
        gap: 20px;
    }

    .banner-button-container .btn {
        /* Enlarge button by 50% on small screens */
        font-size: 18px; /* From 14px, slightly less than 1.5x to fit better */
        padding: 15px 30px; /* From 10px 20px */
    }

    .banner-text {
        padding: 1.5rem;
        width: 90%;
    }

    .banner-text .main-title {
        font-size: 28px;
    }
    
    .banner-text .subtitle {
        font-size: 16px;
    }

    .banner-buttons {
        margin-top: 25px;
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .partner-item {
        padding: 15px;
    }

    .partner-list-columns ul {
        column-count: 1;
    }
}

/* 底部样式 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
    text-align: left; /* Change alignment */
}

.footer-contact {
    width: 48%;
    margin-bottom: 20px;
}

.footer-contact h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 1px solid #34495e;
    padding-bottom: 10px;
}

.footer-contact p {
    margin: 8px 0;
    font-size: 0.95em;
    color: #bdc3c7;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: left; /* Change alignment */
    font-size: 0.9em;
}