/*=======================
 * ACHIEVEMENT PAGE STYLES
 * 1. Achievement Hero Section
 * 2. Achievement Cards & Grid - FIXED
 * 3. Timeline Section
 * 4. User Profile Styles
 * 5. Language Content
 * 6. Responsive Design
 =======================*/

/*======================
 * 1. Achievement Hero Section
 =======================*/
.achievement__area {
    height: 360px;
    background-color: #f7eaa0; 
    padding: 50px 0; 
    text-align: center; 
}

.achievement-row {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    text-align: center;
}

.achievement__title--2 {
    margin-bottom: 20px; 
}

.title__line {
    font-size: 80px; 
    color: #faf9f9; 
    margin-bottom: 20px; 
    margin-top: 100px;
}

/*======================
 * 2. Achievement Cards & Grid - FIXED
 =======================*/
.achievement-section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.achievement-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.achievement-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    width: calc(50% - 15px); 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    min-height: 200px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.achievement-number {
    font-size: 48px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 15px;
}

.achievement-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.achievement-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/*======================
 * 3. Timeline Section
 =======================*/
.achievement-timeline {
    margin-top: 80px;
}

.achievement-timeline h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #f7eaa0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

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

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #fff;
    border: 4px solid #f7eaa0;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    padding-right: 30px;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    padding-left: 30px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-date {
    font-weight: bold;
    color: #000000;
    font-size: 18px;
    margin-bottom: 10px;
}

.timeline-item:nth-child(odd) .timeline-date {
    text-align: right;
}

.timeline-content h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/*======================
 * 4. User Profile Styles
 =======================*/
.user-profile {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    display: none;
}

.user-profile.visible {
    display: inline-block;
}

.profile-btn {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    height: 80px;
    line-height: 60px;
    display: block;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    padding: 0 15px;
}

.profile-btn:hover {
    color: #4285f4;
}

.profile-btn::after {
    content: "▼";
    font-size: 8px;
    margin-left: 6px;
    vertical-align: middle;
}

.user-profile .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 0px;
    right: 0;
    top: 80px;
    padding: 0;
}

.user-profile:hover .dropdown-content {
    display: block;
}

.user-profile .dropdown-content a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px !important;
    color: #333333 !important;
    margin-top: 1px;
    text-decoration: none !important;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.user-profile .dropdown-content a:last-child {
    border-bottom: none;
}

.user-profile .dropdown-content a:hover {
    background-color: #f0f0f0 !important;
    color: #4285f4 !important;
}

.auth-buttons.hidden {
    display: none !important;
}

/*======================
 * 5. Language Content
 =======================*/
.language-content {
    width: 100%;
}



/*======================
 * 6. Responsive Design
 =======================*/
@media screen and (max-width: 992px) {
    .achievement-card {
        width: calc(50% - 15px); /* 保持一致的宽度计算 */
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        padding-left: 15px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-date {
        text-align: left;
    }
    
    .title__line {
        font-size: 60px;
        margin-top: 80px;
    }
    
    .achievement-section-title {
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    .achievement-card {
        width: 100%; /* 在小屏幕上改为每行1个 */
        max-width: 400px;
    }
    
    .achievement-number {
        font-size: 40px;
    }
    
    .achievement-card h3 {
        font-size: 20px;
    }
    
    .timeline-container {
        margin-left: 10px;
        margin-right: 10px;
    }
}

@media screen and (max-width: 576px) {
    .title__line {
        font-size: 36px;
        margin-top: 50px;
    }
    
    .achievement-section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .achievement-timeline h2 {
        font-size: 28px;
    }
    
    .achievement-card {
        padding: 20px;
        min-height: 180px;
    }
    
    .achievement-number {
        font-size: 36px;
    }
    
    .timeline-item {
        padding-left: 50px;
        padding-right: 15px;
    }
    
    .timeline-item::after {
        left: 15px !important;
        width: 16px;
        height: 16px;
    }
    
    .timeline-date {
        font-size: 16px;
    }
    
    .timeline-content h3 {
        font-size: 18px;
    }
    
    .timeline-content p {
        font-size: 14px;
    }
}