/* 门户网站公共样式 */

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #0a0a1a;
    color: #fff;
    overflow-x: hidden;
}

/* 导航栏样式 - 与原来首页一致 */
body {
    padding-top: 90px;
}

.navbar {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    min-height: 90px;
    margin-bottom: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100%;
}

.navbar-header {
    flex-shrink: 0 !important;
    float: none !important;
}

.navbar-collapse {
    flex: 1 !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: auto !important;
}

.navbar-nav.navbar-right {
    float: right !important;
    margin: 0 !important;
    display: flex !important;
    gap: 35px;
    flex-direction: row !important;
}

.navbar .navbar-brand {
    padding: 18px 0;
    height: 90px;
    line-height: 54px;
    outline: none;
}

.navbar .navbar-brand:focus,
.navbar .navbar-brand:active {
    outline: none;
    background: transparent;
}

.navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    font-weight: 600;
    padding: 35px 0;
    line-height: 20px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.navbar-nav > li > a:hover {
    color: #00d4ff;
    background: transparent;
}

.navbar-nav > li > a:focus {
    background: transparent;
    outline: none;
}

.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #9c27b0);
    transition: width 0.3s ease;
}

.navbar-nav > li > a:hover::after {
    width: 100%;
}

/* 选中状态的菜单 */
.navbar-nav > li.active > a,
.navbar-nav > li > a.active {
    color: #00d4ff;
    background: transparent;
}

.navbar-nav > li.active > a::after,
.navbar-nav > li > a.active::after {
    width: 100%;
}

.navbar-toggle {
    border-color: rgba(255, 255, 255, 0.3);
    margin-top: 13px;
}

.navbar-toggle .icon-bar {
    background-color: #fff;
}

/* 移动端导航 */
@media (max-width: 767px) {
    .navbar-collapse {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav > li > a {
        padding: 15px;
    }
}

/* 页脚样式 */
footer.footer,
.footer {
    background: #1a1a2e !important;
    color: #888;
    margin-top: 0;
    padding: 0;
}

footer.footer .row,
.footer .row {
    padding: 40px 0;
}

footer.footer h4,
.footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

footer.footer p,
.footer p {
    color: #888;
    line-height: 1.6;
}

footer.footer ul,
.footer ul {
    list-style: none;
    padding: 0;
}

footer.footer ul li,
.footer ul li {
    margin-bottom: 10px;
}

footer.footer ul li a,
.footer ul li a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer.footer ul li a:hover,
.footer ul li a:hover {
    color: #00d4ff;
}

footer.footer .copyright,
.footer .copyright {
    background: #1a1a2e !important;
    color: #666;
    text-align: center;
    line-height: 50px;
    margin: 0;
}

footer.footer .copyright a,
.footer .copyright a {
    color: #666;
    text-decoration: none;
}

/* 主内容区 */
.portal-content {
    min-height: calc(100vh - 60px);
}
