/* ===== 基础变量 ===== */
:root {
    --primary-color: #0088ff;
    --secondary-color: #00bfff;
    --dark-color: #0a192f;
    --light-color: #f8f9fa;
    --text-color: #4a5568;
    --text-light: #718096;
    --border-color: #e2e8f0;

    /* 响应式高度变量 */
    --header-height-mobile: 80px;
    --header-height-desktop: 100px;
    --nav-height-mobile: 60px;
    --nav-height-desktop: 60px;
    --bottom-nav-height: 68px; /* 调高底部导航高度 */
}

/* ===== 基础重置 ===== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ===== 公司信息栏 ===== */
.company-info-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    padding: 0.5rem 0;
    height: var(--header-height-mobile);
    display: flex;
    align-items: center;
}

.company-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s;
}

.company-logo:hover {
    transform: scale(1.03);
}

.company-title {
    font-weight: 600;
    color: var(--dark-color);
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.company-subtitle {
    font-size: 0.75rem;
    color: var(--text-light);
    display: none;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    background-color: rgba(0, 136, 255, 0.05);
    border-radius: 50px;
    transition: all 0.3s;
    color: var(--text-dark);
    font-size: 0.8rem;
    margin: 0.2rem;
}

.contact-item:hover {
    background-color: rgba(0, 136, 255, 0.1);
    transform: translateY(-2px);
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 0.3rem;
    font-size: 0.9rem;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    width: 100%;
    z-index: 1030;
    background-color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: var(--nav-height-mobile);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    transform: translateY(0);
    opacity: 1;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-collapse {
    background-color: var(--dark-color);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 0.25rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    position: relative;
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.active {
    color: var(--secondary-color);
    position: relative;
}

/* ===== 页脚 ===== */
.news-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.news-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 136, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.footer-container {
    position: relative;
    z-index: 1;
}

.footer-col {
    position: relative;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.footer-about {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.footer-about::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 136, 255, 0.3);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links i {
    margin-right: 0.8rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact i {
    margin-right: 0.8rem;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.85rem;
    position: relative;
}

.footer-legal a:hover {
    color: white;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    right: -0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
}

.footer-legal a:last-child::after {
    display: none;
}

/* ===== 响应式设计 - 电脑端 ===== */
@media (min-width: 768px) {
    .company-info-bar {
        height: var(--header-height-desktop);
    }

    .company-logo {
        height: 60px;
    }

    .company-title {
        font-size: 1.25rem;
    }

    .company-subtitle {
        display: block;
        font-size: 0.85rem;
    }

    .contact-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin: 0;
    }

    .contact-item i {
        margin-right: 0.5rem;
    }

    .navbar {
        top: var(--header-height-desktop);
        height: var(--nav-height-desktop);
    }

    .news-footer {
        padding: 4rem 0 0;
    }

    .footer-col {
        margin-bottom: 0;
    }

    .footer-about {
        font-size: 1rem;
    }

    .footer-title {
        font-size: 1.3rem;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .footer-links a {
        font-size: 1rem;
    }

    .footer-contact li {
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 2rem 0;
        margin-top: 3rem;
    }

    .copyright {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    .navbar-collapse {
        background-color: transparent;
        padding: 0;
        margin-top: 0;
    }

    .nav-link {
        padding: 0.75rem 1rem 1rem;
        font-size: 1rem;
        position: relative;
    }

    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 2px;
        background: var(--secondary-color);
        border-radius: 1px;
        transition: all 0.3s ease;
    }

    .footer-col {
        padding: 0 2rem;
    }

    .footer-title {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
}

/* ===== 响应式设计 - 移动端 ===== */
@media (max-width: 767.98px) {
    /* 隐藏顶部导航栏 */
    .navbar {
        display: none;
    }

    /* ===== 全新设计的底部导航栏 ===== */
    .bottom-navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: var(--bottom-nav-height);
        background-color: white;
        display: flex;
        justify-content: space-around;
        align-items: center;
        z-index: 1050;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
        padding: 0 10px;
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        color: var(--text-light);
        text-decoration: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 0.72rem;
        position: relative;
        padding: 8px 0;
        -webkit-tap-highlight-color: transparent;
    }

    .bottom-nav-item i {
        font-size: 1.5rem;
        margin-bottom: 4px;
        transition: all 0.25s ease;
    }

    .bottom-nav-item span {
        transition: all 0.25s ease;
        font-weight: 500;
    }

    /* 选中状态 */
    .bottom-nav-item.active {
        color: var(--primary-color);
    }

    .bottom-nav-item.active i {
        transform: translateY(-5px) scale(1.1);
    }

    .bottom-nav-item.active span {
        font-weight: 600;
        transform: scale(1.08);
    }

    /* 悬浮效果 */
    .bottom-nav-item:hover {
        color: var(--primary-color);
    }

    /* 活动指示器 */
    .bottom-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        background-color: var(--primary-color);
        border-radius: 50%;
        opacity: 0;
        transition: all 0.25s ease;
    }

    .bottom-nav-item.active::after {
        opacity: 1;
        bottom: 8px;
    }

    /* 点击效果 */
    .bottom-nav-item:active i {
        transform: scale(0.92);
    }

    /* 公司信息栏优化 */
    .company-info-bar {
        height: var(--header-height-mobile);
        padding: 0.5rem 0;
    }

    .row.align-items-center {
        flex-wrap: wrap;
    }

    .company-logo {
        height: 30px;
        max-width: 50px;
        margin-right: 0.5rem;
    }

    .company-name {
        padding-left: 0 !important;
        border-left: none !important;
        flex: 1;
        min-width: 0;
    }

    .company-title {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0.2rem;
    }

    .company-subtitle {
        display: none;
    }

    .col-md-auto.ms-auto {
        width: 100%;
        margin-top: 0.3rem;
        margin-left: 0 !important;
        padding-left: 58px;
    }

    .d-flex.flex-wrap {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .contact-item {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
        margin: 0;
    }

    .contact-item i {
        font-size: 0.7rem;
        margin-right: 0.3rem;
    }

    /* 页脚优化 */
    .footer-col {
        width: 100%;
        float: none;
        clear: both;
        padding: 0 1rem;
    }

    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        width: 50%;
        float: left;
        clear: none;
        margin-top: 0;
    }

    .footer-col:nth-child(2) {
        padding-right: 0.5rem;
    }

    .footer-col:nth-child(3) {
        padding-left: 0.5rem;
        order: initial;
    }

    .footer-col:nth-child(4) {
        order: initial;
        clear: both;
        padding-top: 1rem;
    }

    /* 调整标题间距 */
    .footer-col:nth-child(2) .footer-title,
    .footer-col:nth-child(3) .footer-title {
        margin-bottom: 1rem;
    }

    /* 调整链接项间距 */
    .footer-col:nth-child(2) .footer-links li,
    .footer-col:nth-child(3) .footer-links li {
        margin-bottom: 0.6rem;
    }

    .footer-about::before {
        left: -1rem;
    }

    /* 页脚底部优化 */
    .footer-bottom {
        padding: 1rem 0;
        margin-top: 1rem;
    }

    .copyright {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .footer-legal {
        gap: 0.8rem;
    }

    .footer-legal a {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .company-title {
        font-size: 0.7rem;
    }

    .contact-item {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .col-md-auto.ms-auto {
        padding-left: 50px;
    }

    /* 底部导航栏微调 */
    .bottom-navbar {
        height: 62px;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }

    .bottom-nav-item {
        font-size: 0.65rem;
    }

    .bottom-nav-item i {
        font-size: 1.3rem;
    }

    .bottom-nav-item.active::after {
        width: 5px;
        height: 5px;
    }
}

/* 防止水平滚动 */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}