﻿/* 通用样式重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { 
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif; 
    background-color: #f5f7fa;
    line-height: 1.6;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 头部样式 */
.header {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 8px 0;
    flex-shrink: 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: bold;
    color: #d60000;
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 12px;
    color: #d60000;
}

/* 导航栏 */
.navbar {
    background: #d60000;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
}

.nav-item {
    flex: 1;
    text-align: center;
}

.nav-item a {
    display: block;
    padding: 18px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-item:hover a,
.nav-item.active a {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* 页脚 */
.footer {
    background: #d60000;
    color: white;
    padding: 10px 0;
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-info div {
    margin: 0;
    white-space: nowrap;
}

/* 联系服务弹窗样式 */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.contact-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-close:hover {
    color: #d60000;
}

.contact-title {
    font-size: 24px;
    font-weight: bold;
    color: #d60000;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d60000, #b30000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.contact-info {
    margin: 30px 0;
}

.contact-person {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-phone {
    font-size: 28px;
    font-weight: bold;
    color: #d60000;
    margin: 20px 0;
    letter-spacing: 2px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border: 2px solid #d60000;
}

.contact-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.contact-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.contact-btn {
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-btn-primary {
    background: linear-gradient(135deg, #d60000, #b30000);
    color: white;
}

.contact-btn-primary:hover {
    background: linear-gradient(135deg, #b30000, #8b0000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 0, 0, 0.3);
}

.contact-btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.contact-btn-secondary:hover {
    background: #e9ecef;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* Header 响应式 */
    .header {
        padding: 8px 0; /* 移动端进一步减少间距 */
    }
    
    .header-content {
        flex-direction: row; /* 移动端保持横向布局 */
        align-items: center;
        justify-content: flex-start; /* 左对齐 */
        gap: 0; /* 移除间距，自定义布局 */
    }
    
    .logo-section {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between; /* 左右分布 */
    }
    
    .logo-icon {
        width: 35px; /* 移动端缩小icon */
        height: 35px;
        margin-right: 8px;
        flex-shrink: 0; /* 防止收缩 */
    }
    
    .logo-text {
        display: flex;
        align-items: center;
        gap: 15px; /* 中英文之间的间距 */
        flex: 1;
    }
    
    .logo-text h1 {
        font-size: 18px; /* 移动端减小标题 */
        margin: 0;
        white-space: nowrap; /* 防止换行 */
        flex-shrink: 0; /* 防止收缩 */
    }
    
    .logo-text p {
        font-size: 8px; /* 英文副标题 */
        margin: 0;
        line-height: 1.2; /* 紧凑行高 */
        text-align: right; /* 右对齐 */
        flex: 1; /* 占据剩余空间 */
        word-wrap: break-word; /* 允许单词换行 */
        overflow-wrap: break-word; /* 强制换行 */
    }
    
    /* Navigation 响应式 */
    .nav-container {
        flex-direction: column; /* 移动端垂直布局 */
        padding: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1); /* 分隔线 */
    }
    
    .nav-item:last-child {
        border-bottom: none; /* 最后一项无分隔线 */
    }
    
    .nav-item a {
        padding: 10px 20px; /* 移动端紧凑padding */
        font-size: 14px; /* 移动端字体 */
        text-align: center; /* 居中对齐 */
        border-left: 3px solid transparent; /* 左侧指示器 */
        transition: all 0.3s ease;
    }
    
    .nav-item:hover a,
    .nav-item.active a {
        background: rgba(255,255,255,0.1);
        border-left-color: white; /* 激活状态的左侧指示器 */
    }
    
    /* Footer 响应式 */
    .footer-info {
        flex-direction: column;
        gap: 6px;
    }
    
    /* 联系服务弹窗移动端样式 */
    .contact-modal-content {
        padding: 30px 20px;
        margin: 20px;
        max-width: 350px;
    }
    
    .contact-title {
        font-size: 20px;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .contact-phone {
        font-size: 24px;
        letter-spacing: 1px;
        padding: 12px;
    }
    
    .contact-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-btn {
        width: 100%;
        padding: 15px 24px;
    }
} 