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

:root {
    --primary-blue: #4A90E2;
    --primary-green: #5CB85C;
    --primary-orange: #F0AD4E;
    --text-dark: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-light: #f5f7fa;
    --bg-lighter: #fafbfc;
    --white: #ffffff;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* 首页横幅轮播 */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

.carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

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

.carousel-item.active {
    opacity: 1;
}

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

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-card {
    position: relative;
    z-index: 1;
    background: var(--white);
    padding: 60px 50px;
    border-radius: 0 20px 20px 0;
    max-width: 400px;
    margin-left: 80px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

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

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 5px;
}

/* 通用区块样式 */
section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* 企业文化 */
.culture {
    background: var(--bg-lighter);
    overflow: hidden;
}

.culture-bg-left {
    position: absolute;
    left: -200px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(92, 184, 92, 0.1), rgba(74, 144, 226, 0.1));
    z-index: 0;
}

.culture-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.culture-text {
    padding-right: 40px;
}

.culture-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-top: 20px;
}

.culture-image {
    position: relative;
}

.culture-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
}

.culture-values {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-top: -60px;
    margin-left: 40px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-hover);
}

.culture-values h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.culture-values ul {
    list-style: none;
}

.culture-values li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* 行为准则 */
.conduct {
    background: var(--white);
    overflow: hidden;
}

.culture-bg-right {
    position: absolute;
    right: -200px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(240, 173, 78, 0.1), rgba(74, 144, 226, 0.1));
    z-index: 0;
}

.conduct-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.conduct-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
}

.conduct-text {
    padding-left: 40px;
}

.conduct-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin: 20px 0 30px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.link-arrow:hover {
    transform: translateX(5px);
}

/* 大事记 */
.timeline {
    background: var(--bg-lighter);
}

.timeline .section-title {
    text-align: center;
    margin-bottom: 80px;
}

.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 80px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-blue), var(--primary-orange));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--primary-blue);
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: calc(50% - 40px);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-card {
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-card {
    margin-left: auto;
}

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

.timeline-icon {
    margin-bottom: 20px;
}

.timeline-content h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

.timeline-more {
    text-align: center;
    margin-top: 40px;
}

.btn-more {
    padding: 12px 40px;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* 联系我们 */
.contact {
    background: var(--white);
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(92, 184, 92, 0.08), rgba(240, 173, 78, 0.08));
    z-index: 0;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.contact-item {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-lighter);
    border-radius: 12px;
    transition: all 0.3s ease;
}

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

.contact-item h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-item p {
    font-size: 14px;
    color: var(--primary-blue);
    word-break: break-all;
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
}

.footer-logo p {
    margin-top: 15px;
    opacity: 0.7;
    font-size: 14px;
}

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

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.6;
}

/* 侧边固定按钮 */
.side-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.side-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.side-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

#backToTop {
    background: var(--primary-blue);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container,
    .nav-container {
        padding: 0 30px;
    }

    .culture-content,
    .conduct-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .conduct-image {
        order: 1;
    }

    .conduct-text {
        order: 2;
        padding-left: 0;
    }

    .timeline-wrapper::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-card {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 30px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-card {
        margin-left: 20px;
        margin-right: 20px;
        padding: 40px 30px;
        max-width: calc(100% - 40px);
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    section {
        padding: 80px 0;
    }

    .culture-text,
    .conduct-text {
        padding: 0;
    }

    .culture-values {
        margin-left: 0;
        margin-top: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .side-buttons {
        right: 20px;
        bottom: 20px;
    }

    .side-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .timeline-card {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        padding: 20px;
    }
}
