:root {
    --primary-color: #6c63ff;
    --secondary-color: #2c2c2c;
    --background-color: #ffffff;
    --text-color: #333333;
    --timeline-color: #f0f0f0;
    --container-width-xl: 1200px;
    --container-width-lg: 1000px;
    --container-width-md: 768px;
    --container-width-sm: 480px;
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.navbar {
    position: fixed;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
    margin-left: 0;
    font-size: 0.95rem;
}

.nav-links a::before,
.nav-links a::after {
    display: none;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f3f3f3, #ffffff);
    padding-top: 4rem;
    margin-top: 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.cta-button {
    margin-top: 2rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 0.8s forwards;
    animation-delay: var(--delay, 0s);
}

.cta-button:hover {
    transform: translateY(-3px);
    background: #5550d8;
}

.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.about h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    padding: 0.5rem 1.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
}

html {
    scroll-behavior: smooth;
}

.projects {
    padding: 6rem 2rem 4rem;  /* 增加上padding，防止导航栏遮挡内容 */
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 固定3列 */
    gap: 1.5rem;
    padding: 2rem 0;
}

.project-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;  /* 确保同行卡片高度一致 */
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    flex: 1;  /* 让内容区域自适应填充 */
    padding: 0;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.project-info p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.project-tags {
    margin-top: auto;  /* 标签始终在底部 */
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.project-tags span {
    padding: 0.4rem 1rem;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.project-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #5550d8;
    transform: translateY(-2px);
}

.contact {
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
}

.social-link {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.social-link i {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.platform-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.8rem;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-link span {
    display: block;
    line-height: 1.4;
}

.social-link span:first-of-type {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.social-username {
    color: #666;
    font-size: 0.9rem;
}

/* 平台特定样式 */
.social-link.weibo i,
.social-link.wechat i { 
    display: none;
}

/* 平台特定样式调整 */
.social-link.weibo .platform-icon { 
    width: 36px; /* 微博logo稍大一点 */
}

.social-link.wechat .platform-icon { 
    width: 38px; /* 微信logo稍大一点 */
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.social-link:hover .platform-icon {
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .social-link {
        padding: 1.2rem;
        min-height: 140px;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 3rem 1rem;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .social-link {
        min-height: 120px;
    }
}

.hero-description {
    margin-top: 1rem;
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0 auto;
    max-width: 800px;
}

.photo-gallery {
    margin-top: 2rem;
    padding: 0;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0;
    width: 100%;
    justify-content: center;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    height: 240px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 1.5rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    color: white;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 添加滚动提示样式 */
.gallery-grid::after {
    content: '';
    flex: 0 0 1px;
}

/* 响应式布局优化 */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);  /* 中等屏幕2列 */
    }
    
    .projects-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 1024px) {
    .photo-gallery {
        max-width: 900px;
    }
    
    .gallery-item {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .photo-gallery {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        height: 140px;
    }
}

/* 添加滚动条样式（可选） */
.gallery-grid::-webkit-scrollbar {
    height: 8px;
    display: block;
}

.gallery-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: #5550d8;
}

/* 确保其他内容不会覆盖导航栏 */
section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.awards {
    padding: 6rem 2rem 4rem;
    background: linear-gradient(45deg, #f8f9ff, #ffffff);
}

.awards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.awards h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.awards h2:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

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

.award-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.award-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.award-content h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
}

.award-year {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .awards {
        padding: 4rem 1rem;
    }
    
    .awards-container {
        padding: 0 1rem;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .award-item {
        padding: 1.2rem;
    }
}

/* 统一所有section标题样式 */
section h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

/* 添加标题装饰 */
section h2:after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    section h2 {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
    
    section h2:after {
        width: 40px;
    }
}

/* 页脚样式 */
.footer {
    background: #f9f9f9;
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #eee;
}

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

.qrcode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.qrcode-section h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 0;
}

.qrcode-section p {
    color: #666;
    font-size: 1rem;
    margin: 0;
    max-width: 600px;
}

.qrcode-container {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qrcode-img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 1rem;
    }
    
    .qrcode-section h3 {
        font-size: 1.2rem;
    }
    
    .qrcode-section p {
        font-size: 0.95rem;
    }
    
    .qrcode-img {
        width: 180px;
        height: 180px;
    }
}

/* 商务联系部分样式调整 */
.business {
    padding: 6rem 2rem 4rem;  /* 修改顶部padding为6rem，与其他section保持一致 */
    background: #f9f9f9;
}

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

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

.business-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

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

.business-info h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.business-info p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.business-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.business-tags span {
    padding: 0.4rem 1rem;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.business-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.business-link:hover {
    background: #5550d8;
    transform: translateY(-2px);
}

/* 确保在移动端也保持一致的间距 */
@media (max-width: 768px) {
    .business {
        padding: 4rem 1rem;  /* 移动端也保持与其他section一致的间距 */
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .business-card {
        padding: 1.5rem;
    }
}

/* 通用容器样式 */
.container {
    width: 100%;
    max-width: var(--container-width-xl);
    margin: 0 auto;
    padding: 0 2rem;
}

/* 项目卡片网格布局优化 */
.projects-grid,
.business-grid,
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
}

/* 卡片内容响应式调整 */
.project-card,
.business-card,
.cert-item {
    padding: clamp(1rem, 3vw, 2rem);
}

/* 文字大小响应式调整 */
h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* 响应式布局断点 */
@media (max-width: 1200px) {
    .container {
        max-width: var(--container-width-lg);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: var(--container-width-md);
    }
    
    .projects-grid,
    .business-grid,
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 0.8rem;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.5rem;
        color: #666;
        text-decoration: none;
        transition: color 0.3s ease;
    }

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

    /* 为底部导航腾出空间 */
    body {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: var(--container-width-sm);
    }
    
    .nav-links {
        padding: 0.6rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
        padding: 0.4rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
    
    .project-card,
    .business-card,
    .cert-item {
        padding: 1rem;
    }
}

/* 优化间距和动画 */
.section-padding {
    padding: clamp(3rem, 5vw, 6rem) 0;
}

.section-margin {
    margin: clamp(2rem, 4vw, 4rem) 0;
}

/* 优化交互动画 */
@media (prefers-reduced-motion: no-preference) {
    .card-hover {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
}

/* 优化图片加载 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 优化可访问性 */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-color: #ffffff;
    }
}

.value-proposition {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    margin-top: 1rem;
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* 添加渐入动画 */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: var(--delay, 0s);
}

.hero-description {
    --delay: 0.2s;
}

.value-proposition {
    --delay: 0.4s;
}

.cta-button {
    --delay: 0.6s;
}

.business-contact {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
}

.contact-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.email-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: auto;
    max-width: 100%;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    word-break: break-all;
}

.email-link:hover {
    background: #5550d8;
    transform: translateY(-2px);
}

.email-link i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 1.5rem;
        width: 95%;
    }
    
    .email-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .email-link i {
        font-size: 1.2rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .email-link {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }
}

/* 产品开发部分样式优化 */
.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

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

.project-info {
    text-align: center;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    justify-content: center;
    margin: 1.2rem 0;
}

.project-link {
    display: inline-block;
    margin: 0 auto;
}

/* 卡片样式优化 */
.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.15);
}

/* 专业认证、荣誉奖项和商业联系的标题样式 */
.awards h2,
.business h2 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.awards h2:after,
.business h2:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}
}