/* ============================================
   宁波裕辉德成国际物流有限公司 - 企业官网
   现代化响应式设计
   ============================================ */

/* === 基础重置 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3a6b;
    --primary-light: #2a5a9e;
    --primary-dark: #0f2444;
    --accent: #c8a45c;
    --accent-light: #e0c88a;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a2e;
    --white: #ffffff;
    --border: #e5e5e5;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 5px 30px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
    --font: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === 顶部栏 === */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 6px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: rgba(255,255,255,0.8);
    margin-left: 20px;
}

.top-bar a:hover {
    color: var(--accent);
}

/* === 头部 === */
.header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 6px 0;
}

.logo img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 15px;
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 9px;
    color: var(--text-lighter);
    letter-spacing: 0.3px;
    display: block;
    white-space: nowrap;
}

/* === 导航 === */
.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
}

.nav > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav > li > a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    height: 100%;
    border-bottom: 2px solid transparent;
}

.nav > li > a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 1px;
}

.nav > li > a:hover {
    color: var(--primary-dark);
    background: transparent;
}

.nav > li > a:hover::after {
    transform: scaleX(1);
}

.nav > li > a.active {
    color: var(--accent);
    background: transparent;
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
}

.nav > li > a.active::after {
    display: none;
}

/* 语言切换 */
.lang-switch {
    display: flex;
    gap: 4px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--border);
    align-items: center;
}

.lang-switch a {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 20px;
    color: var(--text-lighter);
    border: 1px solid var(--border);
    transition: var(--transition);
    font-weight: 500;
}

.lang-switch a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: transparent;
}

.lang-switch a.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    border-radius: 6px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--bg-light);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* === 横幅 Banner === */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: var(--primary-dark);
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,36,68,0.85) 0%, rgba(26,58,107,0.6) 100%);
}

.banner-slide .slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.banner-slide .slide-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease;
}

.banner-slide .slide-content p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 1s ease;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.banner-dots span.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* 轮播箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-arrow:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
}
.banner-arrow.prev { left: 20px; }
.banner-arrow.next { right: 20px; }

/* Banner CTA按钮 */
.banner-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 35px;
    border: 2px solid var(--white);
    color: var(--white) !important;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: fadeInUp 1.2s ease;
}
.banner-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(200,164,92,0.4);
}

/* 内页横幅 */
.page-banner {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-banner .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,36,68,0.85) 0%, rgba(26,58,107,0.7) 100%);
}

.page-banner .content {
    position: relative;
    z-index: 2;
}

.page-banner .content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-banner .content p {
    font-size: 16px;
    opacity: 0.85;
}

/* 面包屑 */
.breadcrumb {
    background: var(--bg-light);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--accent);
}

/* === 首页特色区域 === */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 关于我们简介 */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.about-image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent), #b8923f);
    color: var(--white);
    padding: 16px 22px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(200,164,92,0.4);
    animation: fadeInUp 0.8s ease;
}

.badge-year {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.badge-text {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

.about-text h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 16px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.about-subtitle {
    color: var(--accent) !important;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 18px !important;
    letter-spacing: 1px;
}

.about-text > p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.9;
    font-size: 15px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 3px solid var(--accent);
    transition: var(--transition);
}

.feature-item:hover {
    background: #eef2f7;
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.feature-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.feature-info h4 {
    font-size: 15px;
    color: var(--primary-dark);
    margin-bottom: 2px;
    font-weight: 600;
}

.feature-info p {
    font-size: 13px;
    color: var(--text-lighter);
    margin: 0;
}

.about-actions {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(26,58,107,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,58,107,0.4);
    color: var(--white) !important;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26,58,107,0.2);
}

/* 服务项目卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
}

.service-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* 公司理念 */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-item .num {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.value-item h4 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
}

.value-item p {
    font-size: 13px;
    color: var(--text-light);
}

/* 数据统计版块 */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-number::after {
    content: '+';
    font-size: 30px;
}

.stat-item p {
    font-size: 15px;
    opacity: 0.8;
    margin: 0;
}

/* 合作伙伴/客户 */
.partners {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.partners img {
    height: 50px;
    opacity: 0.5;
    transition: var(--transition);
    filter: grayscale(100%);
}

.partners img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* === 内页通用 === */
.page-section {
    padding: 60px 0;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-content h3 {
    font-size: 22px;
    color: var(--primary);
    margin: 30px 0 15px;
}

.page-content h4 {
    font-size: 18px;
    color: var(--primary);
    margin: 20px 0 10px;
}

.page-content p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.9;
}

.page-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.page-content ul li {
    color: var(--text-light);
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.page-content ul li::before {
    content: '●';
    position: absolute;
    left: -5px;
    color: var(--accent);
    font-size: 10px;
}

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.contact-info h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info .info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-info .info-item .icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info .info-item .text h4 {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 3px;
}

.contact-info .info-item .text p {
    font-size: 14px;
    color: var(--text-light);
}

/* 招贤纳士 */
.job-list {
    display: grid;
    gap: 20px;
}

.job-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    transition: var(--transition);
}

.job-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.job-item h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}

.job-item .meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-lighter);
    margin-bottom: 12px;
}

.job-item .meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* === 底部 === */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* === 动画 === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav.open {
        display: flex;
    }
    
    .nav > li > a {
        padding: 12px 15px;
    }
    
    .lang-switch {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }
    
    .banner {
        height: 350px;
    }
    
    .banner-slide .slide-content h2 {
        font-size: 28px;
    }
    
    .banner-slide .slide-content p {
        font-size: 15px;
    }
    
    .page-banner {
        height: 200px;
    }
    
    .page-banner .content h2 {
        font-size: 26px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    .about-intro,
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-intro .image img,
    .about-image img {
        height: 280px;
    }

    .about-features {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .about-actions {
        flex-wrap: wrap;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 280px;
    }
    
    .banner-slide .slide-content h2 {
        font-size: 22px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .logo img {
        height: 35px;
    }
}
