/* ========================================
   华昱建设官网 - 公共组件样式
   包含：header、footer 等公共组件
======================================== */

/* ========== Header 头部导航 ========== */
header {
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 20, 40, 0.06);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a3d62;
    letter-spacing: 0.5px;
    border-left: 5px solid #f7b731;
    padding-left: 15px;
    line-height: 1.3;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-name {
    font-weight: 700;
    color: #0a3d62;
    letter-spacing: 0.5px;
}

.company-slogan {
    font-weight: 400;
    font-size: 1rem;
    color: #4b6584;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    font-weight: 500;
    color: #2d3e50;
}

.nav-links a {
    transition: color 0.2s;
    font-size: 1.05rem;
}

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

/* 移动端导航适配 */
@media (max-width: 700px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
    }
    
    .nav-links {
        margin-top: 10px;
        gap: 1.2rem;
        flex-wrap: wrap;
    }
}

/* ========== Footer 底部 ========== */
footer {
    background: #1c2e40;
    color: #e0e8ef;
    padding: 50px 0 20px;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    flex: 2 1 300px;
}

.footer-about h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #f7b731;
    padding-left: 15px;
}

.footer-about p {
    margin: 1.2rem 0;
    line-height: 1.7;
    max-width: 360px;
}

.footer-contact {
    flex: 1 1 250px;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.2rem;
}

.footer-contact p {
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #f7b731;
    width: 25px;
    font-size: 1.2rem;
}

.footer-links {
    flex: 1 1 150px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin: 0.8rem 0;
}

.footer-links a:hover {
    color: #f7b731;
}

.footer-bottom {
    border-top: 1px solid #33495f;
    padding-top: 25px;
    text-align: center;
    font-size: 0.95rem;
    color: #a0b8cc;
}

.footer-bottom a {
    color: #f7b731;
    text-decoration: underline;
}
