/* 公共头部导航样式 - 首页和报名页共用 */

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    margin: 0;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.right-nav {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    margin-left: 25px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.register-entry {
    margin-left: 25px;
}

.register-entry a {
    background-color: #007bff;
    color: #fff !important;
    padding: 0 20px;
    height: 36px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    border: 1px solid #007bff;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
}

.register-entry a:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
    transform: translateY(-1px);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 25px;
}

.nav-capsule-btn {
    background-color: #f0f0f0;
    color: #555 !important;
    padding: 6px 16px;
    height: 36px;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
}

.nav-capsule-btn:hover {
    background-color: #e0e0e0;
    border-color: #d0d0d0;
}

.backend-btn {
    background-color: #007bff;
    color: #fff !important;
    border-color: #007bff;
}

.backend-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.logout-btn {
    background-color: #dc3545;
    color: #fff !important;
    border-color: #dc3545;
}

.logout-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .right-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .right-nav.active {
        display: flex;
    }
    .nav-links {
        width: 100%;
        text-align: center;
        flex-direction: column;
        margin-bottom: 10px;
    }
    .nav-links a {
        margin: 10px 0;
    }
    .register-entry {
        margin-left: 0;
    }
}
