/* 全局样式 */
* {
    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);
    transition: all 0.3s ease;
}

.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);
    border-radius: 8px;
}

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

.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;
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.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;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.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);
    font-weight: 700;
    letter-spacing: 1px;
}

.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;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.5);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
}

.card h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.card:hover h3::after {
    width: 60px;
}

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

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

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

/* 服务项目样式 */
.service-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
}

.service-item h3::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.service-item:hover h3::before {
    width: 80px;
}

.service-details {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.service-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.service-details p:last-child {
    margin-bottom: 0;
}

.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;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.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: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(30, 58, 138, 0.95);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.8rem 1rem;
        border-radius: 8px;
        text-align: center;
    }
    
    .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;
    }
    
    /* 移动端菜单切换按钮 */
    .nav-toggle {
        display: block !important;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover {
        background-color: rgba(255,255,255,0.1);
    }
}

@media (max-width: 576px) {
    .carousel {
        height: 250px;
    }
    
    .carousel-content h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .page-title h1 {
        font-size: 1.8rem;
    }
    
    .page-title h2 {
        font-size: 1.5rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .article-content,
    .policy-content,
    .company-content,
    .case-content {
        padding: 1rem;
    }
    
    .article-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .company-info,
    .contact-info {
        padding: 0.8rem;
    }
    
    .service-list p {
        padding-left: 0.8rem;
    }
}

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

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 1001;
    transition: width 0.1s ease;
}

.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);
    font-size: 0.9rem;
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.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: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    line-height: 1.8;
    border: 1px solid rgba(0,0,0,0.05);
}

.article-content h1,
.policy-content h1,
.company-content h1,
.case-content h1 {
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid var(--accent-color);
    padding-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.article-content h2,
.policy-content h2,
.company-content h2,
.case-content h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem 0;
    border-left: 5px solid var(--accent-color);
    padding-left: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.article-content h3,
.policy-content h3,
.company-content h3,
.case-content h3 {
    color: var(--text-dark);
    font-size: 1.6rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    line-height: 1.4;
}

.article-content p,
.policy-content p,
.company-content p,
.case-content p {
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    line-height: 1.8;
    text-align: justify;
}

.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: 1.5rem 0;
    padding-left: 2.5rem;
    line-height: 1.8;
}

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

.article-meta,
.policy-meta,
.company-meta,
.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.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.95rem;
    font-weight: 500;
}

.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: 1.5rem;
    }
    
    .article-content h1,
    .policy-content h1,
    .company-content h1,
    .case-content h1 {
        font-size: 2.2rem;
    }
    
    .article-content h2,
    .policy-content h2,
    .company-content h2,
    .case-content h2 {
        font-size: 1.6rem;
    }
    
    .article-content h3,
    .policy-content h3,
    .company-content h3,
    .case-content h3 {
        font-size: 1.4rem;
    }
    
    .article-meta,
    .policy-meta,
    .company-meta,
    .case-meta {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .service-item {
        min-height: auto;
        padding: 2rem 1.5rem;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: #f8f9fa;
}

/* 代码块样式 */
pre {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border-left: 4px solid var(--accent-color);
    margin: 1.5rem 0;
}

code {
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* 文章信息样式 */
.article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-info span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-info i {
    color: var(--primary-color);
}

/* 引用样式 */
blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--bg-light), #f1f3f4);
    border-left: 5px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: serif;
}

/* 页面分隔线 */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 4rem 0;
}

/* 强调文本 */
.highlight {
    background: linear-gradient(120deg, var(--accent-light) 0%, var(--accent-light) 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    transition: background-size 0.25s ease-in;
}

.highlight:hover {
    background-size: 100% 88%;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--accent-color);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.2rem;
}

/* 企业信息样式 */
.company-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.company-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.company-info p:last-child {
    margin-bottom: 0;
}

/* 联系信息样式 */
.contact-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* 服务列表样式 */
.service-list {
    margin: 1rem 0;
}

.service-list p {
    margin-bottom: 0.8rem;
    padding-left: 1rem;
    position: relative;
}

.service-list p::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-list p:last-child {
    margin-bottom: 0;
} 