/* style.css - 西安枫知逸国际贸易 公共样式 */
:root {
    --primary: #003366; /* 深海蓝 */
    --accent: #C0A062; /* 金色 */
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-gray: #64748B;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Noto Sans SC', sans-serif; 
    color: var(--text-dark); 
    line-height: 1.8; 
    overflow-x: hidden; 
}

/* --- 顶部通知栏 --- */
.top-bar { 
    background: var(--primary); 
    color: var(--white); 
    padding: 8px 0; 
    font-size: 0.85rem; 
    text-align: center; 
}

/* --- 导航栏 (核心组件) --- */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center; height: 80px;
}
.logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--primary); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 12px; /* 文字和logo之间的间距 */
    height: 100%;
}
.logo {
    gap: 12px;                /* 图片与文字的间距保持不变 */
    align-items: center;
}
.logo-text {
    display: flex;
    flex-direction: column;   /* 上下排列 */
    line-height: 1.2;         /* 紧凑但不拥挤 */
}

.cn-name {
    font-size: 1.2rem;        /* 中文主名称字号，可微调 */
    font-weight: 700; 
	color: var(--text-dark);  
}

.en-name {
    font-size: 0.9rem;        /* 比之前 0.7rem 大一号，可根据视觉微调为 1rem */
    font-weight: 500;
    color: var(--text-dark);   /* 黑色系，与主文字一致 */
    letter-spacing: 0.5px;
    white-space: nowrap;
}


/* 响应式：移动端适当缩小文字 */
@media (max-width: 768px) {
    .cn-name {
        font-size: 1rem;
    }
    .en-name {
        font-size: 0.75rem;    /* 移动端稍小，但依然比原 0.6rem 大 */
        white-space: normal;
        word-break: break-word;
    }
}

.logo img {
    max-height: 50px; /* 适配80px高的导航栏 */
    max-width: 50px; 
    width: auto;
    height: auto;
    object-fit: contain; /* 保证logo不变形 */
    border-radius: 4px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.footer-logo img {
    height: 32px;
    width: auto;
    display: block;   /* 避免 inline 元素带来额外间距 */
}
.footer-logo h4 {
    margin: 0 !important;  /* 强制覆盖 */
    padding: 0;
    line-height: 32px;     /* 与图片高度一致，确保垂直居中 */
    font-size: 1.2rem;     /* 可选调整 */
}
.nav-menu { display: flex; list-style: none; gap: 40px; }
.nav-item { position: relative; }
.nav-link {
    text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 1rem;
    padding: 8px 0; transition: color 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--accent);
}

/* 移动端菜单按钮 */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle span { width: 25px; height: 3px; background: var(--primary); transition: 0.3s; }

/* --- 通用区块 --- */
section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }
.section-header p { color: var(--text-gray); font-size: 1.1rem; }

/* --- 页脚 --- */
footer { background: #0F172A; color: #94A3B8; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col h4 { color: var(--white); margin-bottom: 25px; font-size: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94A3B8; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--accent); }
.copyright { text-align: center; border-top: 1px solid #1E293B; padding-top: 30px; font-size: 0.9rem; }

/* --- 响应式适配 (公共部分) --- */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed; top: 80px; left: -100%; width: 100%; height: calc(100vh - 80px);
        background: var(--white); flex-direction: column; justify-content: flex-start; align-items: center;
        padding-top: 60px; gap: 30px; transition: left 0.3s ease;
    }
    .nav-menu.active { left: 0; }
    .menu-toggle { display: flex; }
    
    .logo { font-size: 1.2rem; }
    .logo img { max-height: 40px; max-width: 40px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
