/* style.css */

/* 基础样式重置和变量定义 */
:root {
    --primary-color: #2255a4;
    --secondary-color: #4477cc;
    --accent-color: #ff6b6b;
    --text-color: #333333;
    --text-light: #666666;
    --background-light: #f5f7fa;
    --white: #ffffff;
    --black: #000000;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

/* 语言控制 */
[lang="zh"] [data-lang="en"] {
    display: none !important;
}

[lang="en"] [data-lang="zh"] {
    display: none !important;
}

/* 通用布局类 */
.section {
    padding: 5rem 1rem;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.language-switch {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.language-switch:hover {
    background: var(--secondary-color);
}

/* Hero部分样式 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 8rem 1rem 4rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.feature-value {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.feature-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}


/* 业务范围部分样式 */
.services-section {
    background-color: var(--background-light);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    transition: var(--transition);
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.service-card ul {
    list-style: none;
    margin-top: 1.5rem;
}

.service-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.service-card ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* 服务卡片hover效果 */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(var(--primary-color), 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

/* 服务卡片动画效果 */
.service-card {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 为每个卡片设置不同的动画延迟 */
.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* 服务标签样式 */
.service-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(var(--primary-color), 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-icon svg {
        width: 36px;
        height: 36px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .services-section {
        background-color: var(--black);
    }

    .service-card {
        background-color: #1a1a1a;
        color: var(--white);
    }

    .service-card ul li {
        color: #cccccc;
    }

    .service-card::before {
        background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    }
}

/* 加载动画 */
.services-grid.loading {
    position: relative;
    min-height: 300px;
}

.services-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid var(--background-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 交互状态样式 */
.service-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    .service-card {
        animation: none;
        transform: none;
    }
    
    .service-card:hover {
        transform: none;
    }
}

/* 解决方案部分样式 */
.solutions-section {
    background-color: var(--white);
    position: relative;
}

/* 解决方案网格布局 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

/* 解决方案卡片基础样式 */
.solution-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 解决方案卡片标题 */
.solution-card h3 {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    position: relative;
}

.solution-card h3::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 统计数据样式 */
.solution-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 解决方案特性列表 */
.solution-features {
    padding: 1rem 0;
}

.solution-features ul {
    list-style: none;
}

.solution-features ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.solution-features ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 解决方案标签 */
.solution-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 动画效果 */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.solution-card {
    animation: slideInFromBottom 0.6s ease forwards;
    opacity: 0;
}

/* 为每个卡片设置不同的动画延迟 */
.solution-card:nth-child(1) {
    animation-delay: 0.2s;
}

.solution-card:nth-child(2) {
    animation-delay: 0.4s;
}

.solution-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* 悬停效果增强 */
.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.1) 0%,
        rgba(var(--secondary-color-rgb), 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
}

.solution-card:hover::before {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .solution-card {
        padding: 1.5rem;
    }

    .solution-card h3 {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .solution-stats {
        gap: 1rem;
    }
}

/* 解决方案类型标识 */
.solution-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* 解决方案图标 */
.solution-icon {
    margin-bottom: 1.5rem;
}

.solution-icon svg {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .solution-card {
        background: #1a1a1a;
    }

    .solution-stats {
        border-bottom-color: rgba(255,255,255,0.1);
    }

    .stat-label {
        color: #999;
    }

    .solution-features ul li {
        color: #eee;
    }
}

/* 交互状态样式 */
.solution-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 特性列表动画 */
.solution-features ul li {
    opacity: 0;
    animation: fadeInLeft 0.5s ease forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 为特性列表项设置递增延迟 */
.solution-features ul li:nth-child(1) { animation-delay: 0.8s; }
.solution-features ul li:nth-child(2) { animation-delay: 1.0s; }
.solution-features ul li:nth-child(3) { animation-delay: 1.2s; }
.solution-features ul li:nth-child(4) { animation-delay: 1.4s; }

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    .solution-card,
    .solution-features ul li {
        animation: none;
        opacity: 1;
    }
}

/* 成功案例部分样式 */
.cases-section {
    background-color: var(--background-light);
    position: relative;
}

/* 案例分类标签 */
.case-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.case-tag {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.case-tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

.case-tag.active {
    background: var(--primary-color);
    color: var(--white);
}

/* 案例网格布局 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* 案例卡片样式 */
.case-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 案例卡片头部 */
.case-header {
    padding: 2rem;
    background: var(--primary-color);
    color: var(--white);
}

.case-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.case-type {
    font-size: 1rem;
    opacity: 0.9;
}

/* 案例内容部分 */
.case-content {
    padding: 2rem;
}

/* 案例亮点数据 */
.case-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.highlight {
    text-align: center;
}

.highlight-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.highlight-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 案例详情列表 */
.case-details h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.case-details ul {
    list-style: none;
}

.case-details ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.case-details ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* 为每个卡片设置不同的动画延迟 */
.case-card:nth-child(1) { animation-delay: 0.2s; }
.case-card:nth-child(2) { animation-delay: 0.4s; }
.case-card:nth-child(3) { animation-delay: 0.6s; }

/* 案例标签动画 */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.case-tag {
    animation: scaleIn 0.4s ease forwards;
}

/* 悬停效果 */
.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.05) 0%,
        rgba(var(--secondary-color-rgb), 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.case-card:hover::before {
    opacity: 1;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .case-tags {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .case-tag {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .case-header {
        padding: 1.5rem;
    }

    .case-content {
        padding: 1.5rem;
    }

    .highlight-value {
        font-size: 1.75rem;
    }
}

/* 案例过滤动画 */
.case-card.hidden {
    display: none;
}

.case-card.visible {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .case-card {
        background: #1a1a1a;
    }

    .case-tag {
        background: #2a2a2a;
        color: #fff;
    }

    .case-highlights {
        border-bottom-color: rgba(255,255,255,0.1);
    }

    .case-details ul li {
        color: #ccc;
    }

    .highlight-label {
        color: #999;
    }
}

/* 案例卡片交互状态 */
.case-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 加载状态 */
.cases-grid.loading {
    position: relative;
    min-height: 400px;
}

.cases-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--background-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    .case-card,
    .case-tag {
        animation: none;
        opacity: 1;
    }
}

/* 案例图片样式（如果有的话） */
.case-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--background-light);
}

/* 案例类型标签 */
.case-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    font-size: 0.875rem;
    backdrop-filter: blur(4px);
}

/* 合作伙伴部分样式 */
.partners-section {
    background-color: var(--white);
    position: relative;
}

/* 合作伙伴分类 */
.partner-categories {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    padding: 1rem;
}

/* 分类标题 */
.category-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 合作伙伴网格布局 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

/* 合作伙伴卡片样式 */
.partner-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Logo区域样式 */
.partner-logo {
    height: 120px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.logo-placeholder {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    padding: 1rem;
}

/* 合作伙伴信息区域 */
.partner-info {
    padding: 1.5rem;
}

.partner-info h4 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.partner-status {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 15px;
    display: inline-block;
}

/* 特性列表样式 */
.partner-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.partner-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.partner-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 动画效果 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.partner-card {
    animation: fadeInScale 0.5s ease forwards;
    opacity: 0;
}

/* 为每个卡片设置不同的动画延迟 */
.partners-grid .partner-card:nth-child(1) { animation-delay: 0.1s; }
.partners-grid .partner-card:nth-child(2) { animation-delay: 0.2s; }
.partners-grid .partner-card:nth-child(3) { animation-delay: 0.3s; }

/* Logo悬停效果 */
.partner-logo {
    transition: var(--transition);
}

.partner-card:hover .partner-logo {
    background: rgba(var(--primary-color-rgb), 0.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .partner-categories {
        gap: 3rem;
    }

    .partner-logo {
        height: 100px;
    }

    .logo-placeholder {
        font-size: 1.25rem;
    }
}

/* 合作伙伴类型标签 */
.partner-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 15px;
    font-size: 0.875rem;
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .partner-card {
        background: #1a1a1a;
    }

    .partner-logo {
        background: #2a2a2a;
        border-bottom-color: rgba(255,255,255,0.1);
    }

    .partner-info h4 {
        color: #fff;
    }

    .partner-features li {
        color: #ccc;
    }

    .partner-card:hover .partner-logo {
        background: rgba(255,255,255,0.05);
    }
}

/* 交互状态样式 */
.partner-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 加载状态 */
.partners-grid.loading {
    position: relative;
    min-height: 300px;
}

.partners-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--background-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 合作级别标识 */
.partner-level {
    position: absolute;
    top: 0;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    .partner-card {
        animation: none;
        opacity: 1;
    }
    
    .partner-card:hover {
        transform: none;
    }
}

/* 悬停效果增强 */
.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.05) 0%,
        rgba(var(--secondary-color-rgb), 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.partner-card:hover::before {
    opacity: 1;
}


/* 联系我们部分样式 */
.contact-section {
    background-color: var(--background-light);
    position: relative;
}

/* 联系信息容器 */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 1rem;
}

/* 联系信息样式 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-group {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-group:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-group h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-group h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.contact-group p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* 社交链接样式 */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* 地图容器样式 */
.contact-map {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    color: var(--text-light);
}

/* 页脚样式 */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 页脚网格布局 */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

/* 页脚列样式 */
.footer-column h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--white);
}

.footer-column p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* 页脚链接列表 */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 0.5rem;
}

/* 页脚联系信息 */
.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 页脚底部 */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-group {
        padding: 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding-top: 2rem;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .contact-group {
        background: #1a1a1a;
    }

    .contact-map {
        background: #1a1a1a;
    }

    .footer {
        background: #1a1a1a;
    }
}

/* 动画效果 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-group,
.footer-column {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

/* 为元素设置不同的动画延迟 */
.contact-group:nth-child(1) { animation-delay: 0.1s; }
.contact-group:nth-child(2) { animation-delay: 0.2s; }
.contact-group:nth-child(3) { animation-delay: 0.3s; }

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }

/* 社交图标悬停效果 */
.social-link svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.social-link:hover svg {
    transform: scale(1.2);
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    .contact-group,
    .footer-column {
        animation: none;
        opacity: 1;
    }
}

/* 链接焦点状态 */
.footer-links a:focus,
.social-link:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* 悬停效果 */
.contact-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.05) 0%,
        rgba(var(--secondary-color-rgb), 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.contact-group:hover::before {
    opacity: 1;
}

/* 加载状态 */
.map-placeholder.loading {
    position: relative;
}

.map-placeholder.loading::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--background-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 关于我们部分样式 */
.about-section {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

/* 主要内容网格布局 */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

/* 关于我们卡片基础样式 */
.about-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 卡片标题样式 */
.about-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.about-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 卡片内容样式 */
.about-card p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* 资质列表样式 */
.about-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-card ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 发展理念样式 */
.philosophy {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.philosophy-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.philosophy-item span {
    display: block;
}

.philosophy-item span:first-child {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.philosophy-item span:last-child {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 动画效果 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about-card {
    animation: fadeInScale 0.5s ease forwards;
    opacity: 0;
}

/* 为每个卡片设置不同的动画延迟 */
.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.3s; }
.about-card:nth-child(3) { animation-delay: 0.5s; }

/* 渐变背景效果 */
.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.05) 0%,
        rgba(var(--secondary-color-rgb), 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
}

.about-card:hover::before {
    opacity: 1;
}

/* 数字统计样式 */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .philosophy {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-card h3 {
        font-size: 1.25rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .about-card {
        background: #1a1a1a;
    }

    .philosophy-item {
        background: #2a2a2a;
    }

    .about-card p,
    .about-card ul li {
        color: #eee;
    }

    .stat-label {
        color: #999;
    }
}

/* 交互状态 */
.about-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.philosophy-item:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    .about-card,
    .philosophy-item {
        animation: none;
        transform: none;
        opacity: 1;
    }

    .about-card:hover,
    .philosophy-item:hover {
        transform: none;
    }
}

/* 背景装饰 */
.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, 
        rgba(var(--primary-color-rgb), 0.05) 0%,
        transparent 70%);
    z-index: 0;
}

/* 内容层级 */
.about-grid {
    position: relative;
    z-index: 1;
}

/* 强调文本样式 */
.highlight-text {
    color: var(--primary-color);
    font-weight: 500;
}

/* 引用样式 */
.about-quote {
    font-style: italic;
    padding: 1rem 0;
    margin: 1rem 0;
    border-left: 3px solid var(--primary-color);
    padding-left: 1.5rem;
    color: var(--text-light);
}

/* 导航栏基础样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 导航栏容器 */
.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 70px;
}

/* Logo样式 */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* 导航链接容器 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* 导航链接样式 */
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

/* 导航链接悬停效果 */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

/* 当前活动链接样式 */
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* 语言切换按钮 */
.language-switch {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-switch:hover {
    background: var(--primary-color);
    color: white;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* 滚动效果 */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled .navbar {
    height: 60px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 显示移动端菜单按钮 */
    .menu-toggle {
        display: flex;
    }

    /* 移动端导航链接样式 */
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    /* 显示移动端菜单 */
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* 移动端链接样式调整 */
    .nav-links a {
        width: 100%;
        padding: 0.5rem;
    }

    /* 移动端激活菜单按钮样式 */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* 调整Logo大小 */
    .logo {
        font-size: 1.25rem;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .header {
        background-color: rgba(26, 26, 26, 0.98);
    }

    .nav-links a {
        color: #fff;
    }

    .nav-links a:hover {
        color: var(--primary-color);
    }

    @media (max-width: 768px) {
        .nav-links {
            background-color: #1a1a1a;
        }
    }
}

/* 导航栏动画 */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header {
    animation: slideInDown 0.5s ease forwards;
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    .header,
    .nav-links,
    .nav-links a::after {
        transition: none;
        animation: none;
    }
}

/* 键盘导航支持 */
.nav-links a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.language-switch:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 导航栏透明度过渡 */
.header.transparent {
    background-color: transparent;
    box-shadow: none;
}

.header.transparent .nav-links a {
    color: white;
}

.header.transparent .logo {
    color: white;
}

/* 导航栏固定时的过渡效果 */
.header.fixed {
    position: fixed;
    animation: slideInDown 0.5s ease forwards;
}

/* 嵌套导航菜单支持 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color);
}

/* 移动端优化 */
@media (hover: none) {
    .nav-links a:hover::after {
        width: 0;
    }

    .nav-links a:active::after {
        width: 100%;
    }
}


/* 地图容器样式 */
.contact-map {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container {
    width: 100%;
    height: 100%;
}


.nav-content {
    display: flex;
    align-items: center;
}

.logo-image {
    margin-right: 15px; /* 设置 logo 和公司名称之间的距离 */
}

.nav-info {
    display: flex;
    flex-direction: column; /* 使 logo 和 nav-links 垂直排列 */
}

.nav-links {
    display: flex;
    gap: 10px; /* 设置各导航链接之间的距离 */
}
