/* 企业简介部分样式 */
.profile-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.profile-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.profile-content .section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: #333;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.profile-content .section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #b8941f);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

.profile-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (min-width: 768px) {
    .profile-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

.detail-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #d4af37;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.detail-item:hover::before {
    left: 100%;
}

.detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left-color: #b8941f;
}

.detail-item:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out both;
}

.detail-item:nth-child(even) {
    animation: slideInRight 0.6s ease-out both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.label {
    font-weight: 600;
    min-width: 140px;
    color: #333;
    font-size: 16px;
    position: relative;
}

.label::after {
    content: ':';
    margin-left: 5px;
    color: #d4af37;
}

.value {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    flex: 1;
}

.business-activities {
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.business-activities h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.business-activities h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.7s both;
}

.activity-item {
    background: white;
    margin-bottom: 25px;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--accent-color);
    transition: height 0.3s ease;
}

.activity-item:hover::before {
    height: 100%;
}

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

.activity-item h4 {
    font-family: 'Arial', sans-serif;
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    display: flex;
    align-items: center;
}

.activity-item h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
    }

    50% {
        transform: translateY(-50%) scale(1.1);
    }
}

.activity-item p {
    padding-left: 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.employees-info {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.employees-info h3 {
    margin-bottom: 40px;
    font-size: 28px;
    text-align: center;
    color: #333;
    position: relative;
}

.employees-info h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.9s both;
}

.employee-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.count-item {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
    background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.count-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.count-item:hover::before {
    left: 100%;
}

.count-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.count-item:nth-child(1) {
    animation: bounceIn 0.8s ease-out 1s both;
}

.count-item:nth-child(2) {
    animation: bounceIn 0.8s ease-out 1.2s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.count {
    display: block;
    font-family: 'Arial', sans-serif;
    font-size: 48px;
    font-weight: 700;
    background: var(--primary-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    animation: countUp 1.5s ease-out 0.8s both;
}

.count-item .label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    min-width: auto;
    display: block;
}

.count-item .label::after {
    display: none;
}

/* 動畫定義 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .profile-section {
        padding: 30px 0;
    }
    .profile-content{
        padding: 0;
    }
    .profile-content .section-title {
        font-size: 28px;
    }
    .activity-item{
        padding: 20px;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .label {
        min-width: auto;
    }

    .activity-item h4 {
        font-size: 20px;
    }

    .count {
        font-size: 36px;
    }

    .employee-counts {
        align-items: center;
        flex-wrap: nowrap;
        gap: 20px;
    }

    .count-item {
        width: 50%;
        min-width: auto;
        padding: 20px;
    }
}

/* 添加焦點樣式 */
.detail-item:focus,
.activity-item:focus,
.count-item:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* 添加載入狀態 */
.profile-section.loading {
    opacity: 0.7;
    pointer-events: none;
}

.profile-section.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}














