/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 65px;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item.active .nav-text {
    color: #667eea;
    font-weight: 700;
}

.nav-text {
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "STHeiti", "Microsoft Yahei", Tahoma, Simsun, sans-serif;
    text-align: center;
    line-height: 1.3;
}

.nav-item:hover .nav-text {
    color: #667eea;
}

/* 课程通知弹出菜单 */
.course-menu {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 0, 32, 0.2);
    padding: 8px;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    width: 95%;
}

.course-menu.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(139, 0, 32, 0.3);
}

.course-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.course-menu-item:hover {
    background: rgba(139, 0, 32, 0.05);
}

.course-menu-item:active {
    transform: scale(0.95);
}

.course-menu-icon {
    font-size: 20px;
}

.course-menu-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: normal;
    line-height: 1.4;
}

.course-menu-arrow {
    font-size: 12px;
    color: #999;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.course-menu-item.has-submenu.open .course-menu-arrow {
    transform: rotate(90deg);
}

.course-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 20px;
}

.course-submenu.show {
    max-height: 500px;
}

.course-submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(139, 0, 32, 0.02);
    margin: 4px 0;
}

.course-submenu-item:hover {
    background: rgba(139, 0, 32, 0.08);
}

.course-submenu-item:active {
    transform: scale(0.95);
}

.course-submenu-icon {
    font-size: 16px;
}

.course-submenu-text {
    font-size: 13px;
    color: #333;
    font-weight: 400;
    line-height: 1.4;
}

/* 适配安全区域 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
    body {
        padding-bottom: calc(65px + env(safe-area-inset-bottom));
    }
}

/* 毕业相关弹出菜单 */
.graduation-menu {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 0, 32, 0.2);
    padding: 8px;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    width: 95%;
}

.graduation-menu.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(139, 0, 32, 0.3);
}

.graduation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.graduation-item:hover {
    background: rgba(139, 0, 32, 0.05);
}

.graduation-item:active {
    transform: scale(0.95);
}

.graduation-icon {
    font-size: 20px;
}

.graduation-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

/* 学位申请弹出菜单 */
.degree-menu {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 0, 32, 0.2);
    padding: 8px;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    width: 95%;
}

.degree-menu.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(139, 0, 32, 0.3);
}

.degree-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.degree-item:hover {
    background: rgba(139, 0, 32, 0.05);
}

.degree-item:active {
    transform: scale(0.95);
}

.degree-icon {
    font-size: 20px;
}

.degree-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: normal;
    line-height: 1.4;
}

/* 招聘信息弹出菜单 */
.recruitment-menu {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 0, 32, 0.2);
    padding: 8px;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    width: 95%;
}

.recruitment-menu.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(139, 0, 32, 0.3);
}

.recruitment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recruitment-item:hover {
    background: rgba(139, 0, 32, 0.05);
}

.recruitment-item:active {
    transform: scale(0.95);
}

.recruitment-icon {
    font-size: 20px;
}

.recruitment-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: normal;
    line-height: 1.4;
}

/* 新生注册弹出菜单 */
.register-menu {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 0, 32, 0.2);
    padding: 8px;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    width: 95%;
}

.register-menu.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(139, 0, 32, 0.3);
}

.register-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.register-item:hover {
    background: rgba(139, 0, 32, 0.05);
}

.register-item:active {
    transform: scale(0.95);
}

.register-icon {
    font-size: 20px;
}

.register-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: normal;
    line-height: 1.4;
}

/* 新生报名iframe弹窗 */
.register-iframe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.register-iframe-overlay.show {
    display: flex;
}

.register-iframe-container {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    max-height: 700px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.register-iframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #8B0020 0%, #A50026 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.register-iframe-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
}

.register-iframe-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.register-iframe-container iframe {
    flex: 1;
    width: 100%;
    height: 100%;
}
