/* 布局样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

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

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo-link:hover .logo-text {
    transform: scale(1.05);
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 导航菜单 */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.75rem 1rem;
    position: relative;
    text-decoration: none;
    border-radius: 0;
    transition: color 0.3s ease;
    display: inline-block;
    background: transparent;
    border: none;
}

/* 强制去除任何来源的边框/背景，避免个别页面样式覆盖 */
.header .nav-link {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 同步移除 li 包裹元素可能设置的外框样式，确保任何页面都不出现边框卡片效果 */
.header .nav-item,
.header .nav-item * {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.nav-link:hover {
    color: #667eea;
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.nav-link.active {
    color: #667eea;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #667eea;
}

/* 头部右侧区域 */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-switch {
    position: relative;
    cursor: pointer;
}

.language-switch select {
    padding: 0.5rem;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
}

.quote-btn {
    background-color: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.quote-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.quote-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* 移动端导航 */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e0e6ed;
}

.mobile-nav-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid #e0e6ed;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem;
    color: #333;
    font-weight: 500;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a.active {
    background-color: #f8f9fa;
    color: #007bff;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-contact-main {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-left .footer-title {
    color: #f59e0b;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.2rem;
    color: #f59e0b;
    margin-right: 1rem;
    margin-top: 0.25rem;
    min-width: 20px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

.contact-info-right {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.qr-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-section {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-section:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.qr-image {
    margin-bottom: 1.5rem;
}

.qr-image img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid #f59e0b;
    transition: all 0.3s ease;
    background-color: #fff;
}

.qr-section:hover .qr-image img {
    transform: scale(1.05);
    border-color: #fbbf24;
}

.qr-text {
    color: #e5e7eb;
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo-text {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }
    
    .quote-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info-right {
        justify-content: center;
    }
    
    .qr-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .qr-section {
        padding: 2rem 1.5rem;
        min-width: 160px;
    }
    
    .qr-image img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 0.5rem;
    }
    
    .language-switch {
        display: none;
    }
    

    
    .contact-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .contact-item i {
        font-size: 1rem;
        margin-right: 0.75rem;
    }
    
    .contact-label {
        font-size: 0.8rem;
    }
    
    .contact-value {
        font-size: 0.9rem;
    }
    
    .qr-container {
        gap: 1rem;
    }
    
    .qr-section {
        padding: 1.5rem 1rem;
        min-width: 140px;
    }
    
    .qr-image img {
        width: 100px;
        height: 100px;
    }
    
    .contact-info-left .footer-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
}
