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

:root {
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary-color: #4ecdc4;
    --accent-color: #ffa502;
    --success-color: #4ade80;
    --warning-color: #f59e0b;
    --bg-dark: #0f0f23;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e3a8a;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.12);
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 50%, #2d1b69 100%);
    color: #fff;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(96, 165, 250, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(78, 205, 196, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(96, 165, 250, 0.3), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(78, 205, 196, 0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(96, 165, 250, 0.3), transparent);
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

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

.header {
    text-align: center;
    padding: 40px 0;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(96, 165, 250, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(96, 165, 250, 0.8)); }
}

.header p {
    font-size: 1.2rem;
    opacity: 0.85;
    color: #cbd5e1;
}

.project-detail-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    margin-bottom: 30px;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--card-border);
}

.project-title {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #b9e9f0, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.project-status {
    background: linear-gradient(135deg, var(--success-color), #22c55e);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(74, 222, 128, 0.6); }
}

.section {
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-out backwards;
}

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }
.section:nth-child(7) { animation-delay: 0.6s; }
.section:nth-child(8) { animation-delay: 0.7s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 12px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.section p {
    margin-bottom: 15px;
    font-size: 1.15rem;
    color: #e2e8f0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(96, 165, 250, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.4s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    border-left-color: var(--secondary-color);
    box-shadow: 0 8px 30px rgba(96, 165, 250, 0.15);
}

.feature-card:hover::before {
    left: 150%;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.4rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    margin-top: 25px;
}

.role-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.role-card:hover {
    background: rgba(78, 205, 196, 0.12);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(78, 205, 196, 0.3);
    box-shadow: 0 20px 40px rgba(78, 205, 196, 0.15);
}

.role-card h3 {
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-card h3::before {
    content: '🚀';
    font-size: 1.2rem;
}

.role-card p {
    color: #94a3b8;
    margin-bottom: 18px;
    font-size: 1rem;
}

.requirements-list {
    padding-left: 0;
}

.requirements-list li {
    margin-bottom: 10px;
    position: relative;
    padding: 10px 14px 10px 36px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    list-style: none;
    transition: all 0.3s ease;
}

.requirements-list li:hover {
    background: rgba(78, 205, 196, 0.1);
    transform: translateX(5px);
}

.requirements-list li::before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--secondary-color), #2dd4bf);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #0f172a;
    font-weight: bold;
}

.benefits-list {
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.benefits-list li {
    position: relative;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(76, 205, 196, 0.15), rgba(76, 205, 196, 0.05));
    border-radius: 14px;
    border-left: 4px solid var(--secondary-color);
    list-style: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(76, 205, 196, 0.2), transparent);
    border-radius: 50% 0 0 50%;
    transform: translateY(-50%) translateX(50%);
    transition: all 0.4s ease;
}

.benefits-list li:hover {
    background: rgba(76, 205, 196, 0.25);
    transform: translateX(8px);
    border-left-color: var(--primary-color);
}

.benefits-list li:hover::before {
    transform: translateY(-20%) translateX(20%);
}

.progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    height: 28px;
}

.progress-bar {
    height: 100%;
    border-radius: 12px;
    text-align: center;
    line-height: 28px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--success-color), #22c55e, var(--secondary-color));
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.apply-button {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 30px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

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

.apply-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.apply-button:hover::before {
    left: 100%;
}

.apply-button:active {
    transform: translateY(-2px);
}

.contact-info {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0.05));
    border-radius: 20px;
    padding: 28px;
    margin-top: 30px;
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info h3::before {
    content: '📧';
}

.contact-info p {
    margin-bottom: 12px;
    color: #e2e8f0;
    font-size: 1.05rem;
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid rgba(96, 165, 250, 0.4);
    transition: all 0.3s ease;
    font-weight: 500;
}

.email-link:hover {
    color: #93c5fd;
    border-bottom-color: var(--primary-color);
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 30px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, var(--success-color), var(--primary-color), var(--warning-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 15px 45px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    animation: slideIn 0.6s ease-out backwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.timeline-content {
    padding: 24px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.timeline-content:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    top: 30px;
    background: var(--secondary-color);
    border: 4px solid rgba(15, 15, 35, 0.8);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.5);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content::after {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(78, 205, 196, 0.8);
}

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

.timeline-content h3 {
    color: var(--secondary-color);
    margin-top: 0;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.timeline-date {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.7;
}

.timeline-item.completed .timeline-content {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15), rgba(74, 222, 128, 0.05));
    border-color: rgba(74, 222, 128, 0.2);
}

.timeline-item.completed .timeline-content::after {
    background: linear-gradient(135deg, var(--success-color), #22c55e);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.6);
}

.timeline-item.in-progress .timeline-content {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(96, 165, 250, 0.05));
    border-color: rgba(96, 165, 250, 0.2);
}

.timeline-item.in-progress .timeline-content::after {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.6);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 15px rgba(96, 165, 250, 0.6); }
    50% { box-shadow: 0 0 25px rgba(96, 165, 250, 0.9); }
}

.timeline-item.not-started .timeline-content {
    background: rgba(255, 255, 255, 0.03);
}

.timeline-item.not-started .timeline-content::after {
    background: #64748b;
    box-shadow: none;
}

.timeline-item .timeline-content h3.completed {
    color: var(--success-color);
}

.timeline-item .timeline-content h3.in-progress {
    color: var(--primary-color);
}

.timeline-item .timeline-content h3.not-started {
    color: #94a3b8;
}

.floating-home-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.floating-home-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(96, 165, 250, 0.6);
    background: linear-gradient(135deg, var(--primary-dark), #2563eb);
}

.floating-home-btn:active {
    transform: translateY(-2px) scale(1.05);
}

footer {
    text-align: center;
    padding: 30px;
    opacity: 0.5;
    font-size: 0.95rem;
    color: #94a3b8;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    transform: scale(0.85) translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.modal.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-content {
    color: #fff;
}

.modal-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--success-color), #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 2.5rem;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.4);
}

@keyframes popIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.modal-content h3 {
    font-size: 2rem;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--success-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content p {
    margin-bottom: 12px;
    opacity: 0.9;
    color: #e2e8f0;
    font-size: 1.05rem;
}

.modal-email {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(96, 165, 250, 0.1));
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    margin: 20px 0;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.modal-email:hover {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(96, 165, 250, 0.2));
    color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.3);
}

.modal-note {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-top: 20px !important;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #94a3b8;
    border-left: 3px solid var(--accent-color);
}

.modal-close-btn {
    margin-top: 25px;
    padding: 14px 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

.modal-close-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.5);
}

@media screen and (max-width: 768px) {
    body::before {
        background-size: 150px 150px;
    }

    .container {
        padding: 20px 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .project-detail-card {
        padding: 25px;
    }

    .project-title {
        font-size: 1.6rem;
    }

    .project-status {
        margin-top: 15px;
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 20px;
    }

    .roles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .role-card {
        padding: 22px;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 24px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 65px;
        padding-right: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
        left: 0 !important;
    }

    .timeline-content {
        padding: 20px;
        margin-bottom: 10px;
    }

    .timeline-content::after {
        left: -26px !important;
        top: 25px;
        margin-top: -12px;
    }

    .floating-home-btn {
        width: 52px;
        height: 52px;
        bottom: 25px;
        right: 25px;
    }

    .modal {
        padding: 25px;
        margin: 15px;
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .modal-content h3 {
        font-size: 1.6rem;
    }

    .progress-container {
        height: 24px;
    }

    .progress-bar {
        line-height: 24px;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .header h1 {
        font-size: 1.6rem;
    }

    .project-detail-card {
        padding: 20px;
    }

    .apply-button {
        padding: 15px;
        font-size: 1.1rem;
    }

    .contact-info {
        padding: 20px;
    }
}