/* 关于页面布局 */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-content {
    margin-bottom: 60px;
}

/* 公司简介 */
.company-intro {
    text-align: center;
    padding: 60px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.company-intro h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 40px;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.4s;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.intro-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.intro-image:hover img {
    transform: scale(1.05);
}

/* 我们的优势 */
.our-advantages {
    padding: 60px 0;
}

.our-advantages h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.advantage-item.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.advantage-item:nth-child(2) {
    animation-delay: 0.2s;
}

.advantage-item:nth-child(3) {
    animation-delay: 0.4s;
}

.advantage-item:nth-child(4) {
    animation-delay: 0.6s;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    transition: transform 0.3s;
}

.advantage-item:hover .advantage-icon {
    transform: scale(1.1);
}

.advantage-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.advantage-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 发展历程 */
.company-history {
    padding: 60px 0;
    background: #f9f9f9;
}

.company-history h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #4CAF50;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding-right: 40px;
    opacity: 0;
    transform: translateX(-50px);
}

.timeline-item.animate {
    animation: slideInLeft 0.6s ease forwards;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 40px;
    transform: translateX(50px);
}

.timeline-item:nth-child(even).animate {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -6px;
    top: 0;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    transition: transform 0.3s;
}

.timeline-item:nth-child(even)::before {
    right: auto;
    left: -6px;
}

.timeline-item:hover::before {
    transform: scale(1.5);
}

.year {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 10px;
}

.timeline-item .content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.timeline-item:hover .content {
    transform: translateY(-5px);
}

.timeline-item .content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.timeline-item .content p {
    font-size: 14px;
    color: #666;
}

/* 团队介绍 */
.our-team {
    padding: 60px 0;
}

.our-team h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.team-member.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.team-member.hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s;
}

.team-member:hover .member-photo {
    transform: scale(1.1);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.team-member:hover .member-photo img {
    transform: scale(1.1);
}

.team-member h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 5px;
}

.team-member .position {
    font-size: 16px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.team-member .description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 联系我们 */
.contact-us {
    padding: 60px 0;
    background: #f9f9f9;
}

.contact-us h2 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.info-item p {
    font-size: 16px;
    color: #666;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    background: transparent;
    transition: all 0.3s;
}

.input-wrapper textarea {
    height: 120px;
    resize: vertical;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.input-label {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #999;
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s;
}

.input-wrapper.focused .input-label,
.input-wrapper.has-value .input-label {
    top: -10px;
    left: 0;
    font-size: 12px;
    color: #4CAF50;
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4CAF50;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.input-wrapper.focused .input-underline {
    transform: scaleX(1);
}

.input-wrapper.error input,
.input-wrapper.error textarea {
    border-color: #e53935;
}

.input-wrapper.error .input-label {
    color: #e53935;
}

.error-message {
    color: #e53935;
    font-size: 12px;
    margin-top: 5px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.input-wrapper.shake {
    animation: shake 0.5s ease;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:not(:disabled):hover {
    background: #45a049;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 消息提示 */
.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
    animation: slideIn 0.3s ease;
}

.message.success {
    background: #4CAF50;
    color: #fff;
}

.message.error {
    background: #e53935;
    color: #fff;
}

.message-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.message-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* 成功动画 */
.success-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
    box-shadow: 0 0 0 #4CAF50;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
    100% { box-shadow: inset 0 0 0 100px #4CAF50; }
}

/* 返回顶部按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #45a049;
    transform: translateY(-5px);
}

.scroll-to-top:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .intro-content {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        width: 100%;
        padding-right: 0;
        padding-left: 30px;
    }

    .timeline-item:nth-child(even) {
        padding-left: 30px;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item::before {
        left: -6px;
        right: auto;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .company-intro h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
    }

    .intro-text p {
        font-size: 14px;
    }

    .intro-image img {
        height: 200px;
    }
} 