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

body {
    font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    margin: 0;
    -webkit-text-size-adjust: 100%;
}

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

/* 主题颜色变量 */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #4299e1;
    --text-color: #333;
    --light-text: #666;
    --background-light: #f7fafc;
    --background-white: #fff;
    --border-color: #e2e8f0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

/* Logo样式 */
.logo img {
    max-height: 50px;
    width: auto;
}

/* Logo文字样式 */
.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

/* 页脚Logo样式 */
.footer-logo img {
    max-height: 40px;
    width: auto;
}

/* 首页头部：默认半透明深色（保证菜单可见），鼠标滑入后变为浅蓝底色 */
.site-header {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header:hover {
    background: rgba(191, 202, 215, 0.8);
    backdrop-filter: blur(10px);
}

/* 首页菜单字号放大 */
.site-header .nav-list > li > a {
    font-size: 16px;
}

/* Hero区域 */
.hero-section {
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
    margin-top: -60px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

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

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

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

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hero-content h2 {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.03);
    z-index: 1;
}

/* 背景图片容器 */
.bg-container {
    position: relative;
    overflow: hidden;
}

.bg-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    background: url('../images/map.png') center center no-repeat;
    background-size: 80% auto;
    z-index: 0;
}

/* 使命/价值主张区域 */
.mission-section {
    position: relative;
    background: transparent;
    padding: 100px 0;
    overflow: hidden;
}

.mission-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-text {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* 数据统计区域 */
.statistics-section {
    position: relative;
    background: transparent;
    padding: 80px 0;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    color: #b8d477;
    margin-bottom: 15px;
    font-family: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}

.stat-label {
    font-size: 16px;
    color: #666;
    line-height: 1.4;
}

/* 客户案例区域 */
.cases-section {
    padding: 80px 0;
    background: #f1f6e4;
}

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

.section-title {
    font-size: 32px;
    color: #b8d477;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: none;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: #b8d477;
    margin: 0 auto;
    border-radius: 1.5px;
}

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

.case-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
    height: 450px;
    display: flex;
    flex-direction: column;
}

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

.case-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.case-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

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

.case-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

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

.case-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    z-index: 2;
}

.case-subtitle {
    font-size: 14px;
    color: #b8d477;
    font-weight: 600;
    margin-bottom: 15px;
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    color: #fff;
    z-index: 2;
}

.case-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 20px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.case-link {
    color: #b8d477;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-block;
    margin-top: auto;
    align-self: flex-end;
    font-size: 14px;
}

.case-link:hover {
    color: #9fc44a;
    text-decoration: underline;
}

.case-link::after {
    display: none;
}

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.news-card {
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

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

.news-date {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.news-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: #b8d477;
}

.news-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.read-more {
    color: #b8d477;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.read-more:hover {
    color: #9fc44a;
}

.read-more .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    transform: rotate(-45deg);
    font-size: 18px;
    font-weight: 600;
}

.read-more:hover .arrow {
    transform: rotate(0deg);
}

.read-more::after {
    display: none;
}

.read-more:hover::after {
    display: none;
}

/* 办公地点区域 */
.locations-section {
    padding: 80px 0;
    background: #fff;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.location-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

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

.location-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.location-item:hover .location-image {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.location-name {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.location-english {
    font-size: 14px;
    color: #fff;
    font-weight: 400;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 合作机构区域 */
.partners-section {
    padding: 80px 0;
    background: #fff;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.partners-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.partners-row {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.partners-row:hover .partners-track {
    animation-play-state: paused;
}

.partners-track {
    display: flex;
    gap: 20px;
    width: fit-content;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.partners-row-left .partners-track {
    animation-name: scroll-left;
    animation-duration: 30s;
}

.partners-row-right .partners-track {
    animation-name: scroll-right;
    animation-duration: 30s;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.partner-item {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    min-height: 100px;
    box-sizing: border-box;
}

/* 第一行：显示6个 */
.partners-row-left .partner-item {
    width: calc((100% - 20px * 5) / 6);
    min-width: 0;
    max-width: 150px;
}

/* 第二行：显示6个，宽度与第一行一致 */
.partners-row-right .partner-item {
    width: calc((100% - 20px * 5) / 6);
    min-width: 0;
    max-width: 150px;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.partner-item img {
    width: 100%;
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
    transition: all 0.3s;
}

/* 页脚弧形背景 - 使用SVG实现弧形效果 */
.footer-arc-bg {
    width: 100%;
    height: 100px;
    min-height: 100px;
    position: relative;
    z-index: 2;
    margin-top: -1px;
    overflow: hidden;
    background: transparent;
    line-height: 0;
}

.footer-arc-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Footer 样式 - 按设计图 1:1 */
.site-footer {
    background: #b8d477 !important;
    padding: 0 0 48px !important;
    color: #fff;
    position: relative !important;
    overflow: visible !important;
    margin-top: 0 !important;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section {
    color: #fff;
}

/* 左侧：品牌 + 联系方式 */
.footer-left {
    flex: 0 1 auto;
    min-width: 280px;
    text-align: left;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-logo-img {
    max-height: 48px;
    width: auto;
    display: block;
    margin-bottom: 8px;
}

.footer-brand-en {
    font-size: 11px;
    color: #fff;
    opacity: 0.95;
    letter-spacing: 0.02em;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.contact-block {
    margin-bottom: 20px;
}

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

.contact-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.footer-contact .contact-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.contact-block-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.contact-block-detail {
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    margin: 0;
    padding-left: 26px;
}

/* 右侧：版权与备案信息 */
.footer-legal {
    flex: 1;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

/* 页脚右侧文字统一字号 - 确保所有文字完全一致 */
.footer-legal p,
.footer-legal .copyright,
.footer-legal .license {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
    color: #fff !important;
    margin: 2px 0 !important;
}

/* 平板适配 */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-row .partner-item {
        width: calc((100% - 30px * 2) / 3);
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    .footer-section {
        width: 100%;
        min-width: unset;
    }
    
    .footer-legal {
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content h2 {
        font-size: 18px;
    }
    
    .mission-text {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .statistics-section,
    .cases-section,
    .news-section,
    .locations-section,
    .partners-section {
        padding: 50px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .location-image {
        width: 150px;
        height: 150px;
    }
    
    .partners-row .partner-item {
        width: calc((100% - 30px) / 2);
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .footer-section {
        width: 100%;
        min-width: unset;
    }
    
    .footer-legal {
        align-items: flex-start;
        text-align: left;
        max-width: 100%;
    }
    
    .footer-logo-img {
        max-height: 40px;
    }
    
    .footer-brand-en {
        font-size: 10px;
    }
    
    .contact-block-title {
        font-size: 14px;
    }
    
    .contact-block-detail {
        font-size: 13px;
        padding-left: 26px;
    }
    
    .footer-legal .copyright {
        font-size: 14px;
    }
    
    .footer-legal .license {
        font-size: 14px;
    }
}

/* 小屏手机（≤480px）进一步收紧内边距与字号 */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-section {
        height: 320px;
    }
    
    .hero-content h1 {
        font-size: 20px;
    }
    
    .hero-content h2 {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .statistics-section,
    .cases-section,
    .news-section,
    .locations-section,
    .partners-section {
        padding: 36px 0;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .location-image {
        width: 120px;
        height: 120px;
    }
    
    .partners-row .partner-item {
        width: calc((100% - 12px) / 2);
        max-width: none;
    }
}
