/* C:\Users\Administrator\Desktop\feicui\css\common.css */

/* ========== 基础重置与公共样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
    padding-top: 90px; /* 为固定导航栏留出空间 */
}

img {
    max-width: 100%;
}

/* ========== 导航栏（固定） ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    height: 90px;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

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

.logo-box {
    width: 140px;
    height: 80px;
    background: #0a9e6e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.logo-box .cn {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
}

.logo-box .en {
    font-size: 9px;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 70px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 17px;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #0a9e6e;
}

.nav-links a.active {
    color: #0a9e6e;
}

/* ========== 响应式（顺序：900 → 768 → 480，小屏优先保证导航可用） ========== */
@media (max-width: 900px) {
    body {
        padding-top: 60px;
    }

    .navbar {
        padding: 0 20px;
        height: 60px;
    }

    .logo-box {
        width: 100px;
        height: 60px;
    }

    .logo-box .cn {
        font-size: 16px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .navbar {
        padding: 0 20px;
        height: 60px;
    }

    .logo-box {
        width: 100px;
        height: 60px;
    }

    .logo-box .cn {
        font-size: 16px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    .navbar {
        padding: 0 20px;
        height: 60px;
    }

    .logo-box {
        width: 100px;
        height: 60px;
    }

    .logo-box .cn {
        font-size: 16px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 14px;
    }
}
