* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Microsoft YaHei, sans-serif;
    background-color: #f5f5f5;
}
/*.container {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    min-height: 100vh;*/
/*}*/
.main-content {
    display: flex;
    height: 550px;
}
.category-nav {
    width: 120px;
    height: 100%;
    background-color: #0080e9;
    padding-left: 10px;
    padding-top: 75px;
    overflow: hidden;
}
.category-nav .nav-item {
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    text-align: right;
    transition: background-color 0.3s;
    border-radius: 4px 0 0 4px;
}
.category-nav .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.category-nav .nav-item.active {
    background-color: #ffffff;
    color: #0080e9;
}
.timeline-container {
    overflow-x: auto;
    flex: 1;
    padding: 0;
    position: relative;
    background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 8.33%);
    background-size: 100% 100%;
    background-position: 0 0;
    background-color: #fff;
}
.month-nav {
    overflow-x: auto;
    background-color: #3b5998;
    padding: 5px 0;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    color: white;
    margin-bottom: 20px;
    border-radius: 5px;
}
.month-nav span {
    cursor: pointer;
    padding: 5px 15px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
}
.timeline-container {
    flex: 1;
    padding: 0 0 0 1px;
    position: relative;
}
.timeline-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-container {
    display: grid;
    grid-template-columns: repeat(12, 7.4%);
    gap: 15px;
    position: relative;
}
.category-label {
    position: absolute;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #333;
}
.timeline-item {
    position: relative;
    padding: 0;
    color: white;
    height: 4px;
    cursor: pointer;
    z-index: 1;
    font-size: 14px;
    font-weight: 600;
}

.timeline-item .content {
    overflow: hidden;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0);
}

.timeline-item.expanded {
    padding: 10px 26px;
    height: auto;
    min-height: 64px;
    opacity: 1;
    border-radius: 10px;
}

.timeline-item.expanded .content {
    overflow: visible;
    white-space: normal;
    color: white;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    width: 8px;
    height: 8px;
    background-color: var(--timeline-color-hex);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 3px var(--timeline-color-hex-opacity);
    z-index: 2;
}
.timeline-item.expanded::before {
    left: 10px;
    top: 30%;
    background-color: #fff;
    box-shadow: 0 0 0 3px #ffffff50;
}
.card-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 30px;
    padding: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.card-container::-webkit-scrollbar {
    height: 8px;
}

.card-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.card-container::-webkit-scrollbar-thumb {
    background: #d04838;
    border-radius: 4px;
}

.card-container::-webkit-scrollbar-thumb:hover {
    background: #b03828;
}

.application-card {
    position: relative;
    flex: 1;
    padding: 25px 25px 50px 25px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    scroll-margin: 20px;
    transition: transform 0.3s ease;
    transform: translateY(0);

&.active {
     transform: translateY(-10px);
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
 }
}

.application-card h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.apply-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}
.application-card h3 {
    font-size: 1rem;
}
.application-object {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.5;
    flex: 1;
}
.application-time {
    width: 280px;
    text-align: center;
    font-size: 1rem;
    padding: 6px 20px;
    border-radius: 50px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.2);
span {
    font-size: 20px;
    font-weight: 700;
}
}
.application-support {
    position: absolute;
    bottom: 0;
    left: calc(50% - 60px);
    right: 0;
    width: 120px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;

&::after {
     content: "";
     display: inline-block;
     width: 0;
     height: 0;
     border-left: 6px solid transparent; /* 箭头宽度 */
     border-right: 6px solid transparent; /* 箭头宽度 */
     border-top: 8px solid #fff; /* 箭头颜色和高度 */
     margin-left: 5px; /* 调整箭头位置 */
     transition: transform 0.3s ease; /* 添加过渡动画 */
 }
/* 悬停时旋转 */
&.active::after {
     transform: rotate(180deg);
 }
}

.timeline-item.active {
    z-index: 2;
}

@media screen and (min-width: 1800px) {
    .main-content {
        display: flex;
        height: 650px;
    }
    .category-container {
        display: grid;
        grid-template-columns: repeat(12, 7.4%);
        gap: 18px;
        position: relative;
    }
}
@media screen and (min-width: 2000px) {
    .main-content {
        display: flex;
        height: 700px;
    }
    .category-container {
        display: grid;
        grid-template-columns: repeat(12, 7.4%);
        gap: 18px;
        position: relative;
    }
}
@media screen and (min-width: 3000px) {
    .main-content {
        display: flex;
        height: 900px;
    }
    .category-container {
        display: grid;
        grid-template-columns: repeat(12, 7.4%);
        gap: 25px;
        position: relative;
    }
}
