/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #4a4a4a;
    background-color: #fefefe;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* 配色方案 - 物流主题 */
:root {
    --primary-color: #1e3a8a;      /* 深蓝色 */
    --secondary-color: #166534;    /* 墨绿色 */
    --accent-color: #f59e0b;       /* 橙色 */
    --accent-light: #fbbf24;       /* 浅橙色 */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--bg-white);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 主要内容区域 */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 页面标题 */
.page-title {
    text-align: center;
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, var(--bg-light), var(--accent-light));
    margin-bottom: 3rem;
}

.page-title h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.page-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* 轮播图 */
.carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 3rem;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-align: center;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.carousel-content {
    position: relative;
    z-index: 2;
}

.carousel-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.4);
}

/* 卡片样式 */
.card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 服务项目样式 */
.service-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--bg-white);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, var(--secondary-color), #6b5b47);
    color: var(--bg-white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    color: #e0e0e0;
    text-decoration: none;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .carousel {
        height: 300px;
    }
    
    .carousel-content h2 {
        font-size: 2rem;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
    
    .page-title h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .carousel {
        height: 250px;
    }
    
    .carousel-content h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 详情页面样式 */
.breadcrumb {
    margin: 2rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.article-content,
.policy-content,
.company-content,
.case-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.article-content h1,
.policy-content h1,
.company-content h1,
.case-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 1rem;
}

.article-content h2,
.policy-content h2,
.company-content h2,
.case-content h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.article-content h3,
.policy-content h3,
.company-content h3,
.case-content h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem 0;
}

.article-content p,
.policy-content p,
.company-content p,
.case-content p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.article-content ul,
.policy-content ul,
.company-content ul,
.case-content ul,
.article-content ol,
.policy-content ol,
.company-content ol,
.case-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li,
.policy-content li,
.company-content li,
.case-content li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.article-meta,
.policy-meta,
.company-meta,
.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.article-meta span,
.policy-meta span,
.company-meta span,
.case-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-meta i,
.policy-meta i,
.company-meta i,
.case-meta i {
    color: var(--primary-color);
}

/* 响应式详情页面 */
@media (max-width: 768px) {
    .article-content,
    .policy-content,
    .company-content,
    .case-content {
        padding: 1rem;
    }
    
    .article-content h1,
    .policy-content h1,
    .company-content h1,
    .case-content h1 {
        font-size: 2rem;
    }
    
    .article-content h2,
    .policy-content h2,
    .company-content h2,
    .case-content h2 {
        font-size: 1.5rem;
    }
    
    .article-meta,
    .policy-meta,
    .company-meta,
    .case-meta {
        flex-direction: column;
        gap: 1rem;
    }
} 