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

:root {
    --gold: #D4AF37;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray: #f5f5f5;
    --dark-gray: #333333;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--black);
    line-height: 1.6;
}

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

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-cn {
    font-size: 14px;
    color: var(--black);
    opacity: 0.8;
}

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

.nav a {
    color: var(--black);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--black);
    font-size: 24px;
    cursor: pointer;
}

/* 主轮播图 */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content {
    position: absolute;
    bottom: 80px;
    right: 50px;
    text-align: right;
    color: var(--white);
    z-index: 2;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider-btn {
    display: none;
}



.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot.active {
    background: var(--gold);
}

/* 通用区块样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--black);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
}

/* 项目精选 */
.projects {
    background: var(--gray);
}

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

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

.project-info h3 {
    font-size: 18px;
    font-weight: 500;
}

/* 关于我们 */
.about {
    background: var(--white);
}

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

.about-logo {
    flex-shrink: 0;
    text-align: center;
}

.about-logo-img {
    width: 200px;
    height: auto;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--dark-gray);
    text-align: justify;
}

/* 公司团队 */
.team {
    background: var(--gray);
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.team-card {
    text-align: left;
    padding: 20px 10px;
    transition: transform 0.3s;
}

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

.team-grid .team-card:nth-child(-n+2) {
    flex: 0 0 50%;
}

.team-grid .team-card:nth-child(n+3) {
    flex: 0 0 25%;
}

.team-img {
    width: 100%;
    height: auto;
    margin: 0 auto 10px;
    /* border-radius: 8px; */
    overflow: hidden;
    /* border: 3px solid var(--gold); */
}

.team-grid .team-card:nth-child(-n+2) .team-img {
    width: 100%;
    height: auto;
}

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

.team-card h3 {
    font-size: 18px;
    color: var(--black);
    display: inline;
    margin-right: 8px;
}

.team-position {
    font-size: 14px;
    color: var(--gold);
    display: inline;
}

/* 技术分享 */
.tech-share {
    background: var(--white);
}

.tech-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.tech-slider-container {
    display: flex;
    transition: transform 0.5s ease;
}

.tech-slide {
    min-width: 100%;
    opacity: 0.5;
    transition: opacity 0.5s;
}

.tech-slide.active {
    opacity: 1;
}

.tech-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.tech-img {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

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

.tech-info {
    padding: 25px;
}

.tech-info h3 {
    font-size: 20px;
    color: var(--black);
    margin-bottom: 10px;
}

.tech-info p {
    font-size: 15px;
    color: var(--dark-gray);
}

.tech-slider-btn {
    display: none;
}

.tech-slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.tech-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.tech-dot.active {
    background: var(--gold);
}

/* 合作伙伴 */
.partners {
    background: var(--gray);
}

.partners-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.partners-slider-container {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.partner-slide {
    min-width: 200px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--gray);
    border-radius: 8px;
}

.partner-slide img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.partner-slide:hover img {
    filter: grayscale(0);
}

.partners-slider-btn {
    display: none;
}

/* 底部信息 */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 50px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 15px;
}

.footer-info p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.footer-contact h4,
.footer-qr h4 {
    font-size: 16px;
    color: var(--gold);
    margin-bottom: 15px;
}

.footer-contact p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--gold);
    margin-right: 8px;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: var(--white);
    padding: 10px;
    border-radius: 5px;
}

.qr-code img {
    width: 100%;
    height: 100%;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    opacity: 0.6;
}

.footer-wangan {
    width: 120px;
    height: auto;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.footer-qr img {
    display: block;
}

/* 响应式 - 移动端 */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .logo-img {
        height: 35px;
    }

    .logo-cn {
        font-size: 12px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .nav.active {
        display: flex;
    }

    .nav.active a {
        color: var(--black);
    }

    .nav a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        font-size: 14px;
    }

    .slide-content {
        bottom: 60px;
        right: 30px;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

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

    .project-img {
        height: 180px;
    }

    .project-info h3 {
        font-size: 15px;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-logo-img {
        width: 160px;
    }

    .about-text p {
        font-size: 14px;
    }

    .team-grid .team-card:nth-child(-n+2) {
        flex: 0 0 100%;
        max-width: none;
    }

    .team-grid .team-card:nth-child(n+3) {
        flex: 0 0 calc(50% - 10px);
        max-width: none;
        padding: 20px 5px;
    }

    .team-card h3 {
        font-size: 13px;
        white-space: nowrap;
    }

    .team-position {
        font-size: 11px;
    }

    .team-img {
        width: 100%;
        height: auto;
    }

    .team-grid .team-card:nth-child(-n+2) .team-img {
        width: 100%;
        height: auto;
    }

    .tech-img {
        height: 250px;
    }

    .tech-info h3 {
        font-size: 17px;
    }

    .tech-info p {
        font-size: 13px;
    }

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

    .footer-info,
    .footer-contact,
    .footer-qr {
        text-align: center;
    }

    .qr-code {
        margin: 0 auto;
    }

    .footer-wangan {
        width: 100px;
        margin: 10px auto 0;
    }

    .footer-info h3 {
        font-size: 17px;
    }

    .footer-info p {
        font-size: 12px;
    }

    .footer-contact h4,
    .footer-qr h4 {
        font-size: 14px;
    }

    .footer-contact p {
        font-size: 12px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 35px;
    }


}

/* 响应式 - 小屏幕手机 */
@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .team-grid .team-card:nth-child(-n+2) {
        flex: 0 0 100%;
        max-width: none;
    }

    .team-grid .team-card:nth-child(n+3) {
        flex: 0 0 calc(50% - 10px);
        max-width: none;
        padding: 20px 5px;
    }

    .team-img {
        width: 100%;
        height: auto;
    }

    .team-grid .team-card:nth-child(-n+2) .team-img {
        width: 100%;
        height: auto;
    }

    .team-card h3 {
        font-size: 13px;
        white-space: nowrap;
    }

    .team-position {
        font-size: 10px;
    }

    .partner-slide {
        min-width: 150px;
        margin: 0 10px;
    }
}

@media (max-width: 360px) {
    .partner-slide {
        min-width: 120px;
        margin: 0 8px;
        padding: 15px;
    }
}