/* 主体样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: bold;
    color: #333 !important;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 1rem 1.2rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #0d6efd !important;
}

/* 首页横幅轮播样式 */
.hero-section {
    height: 500px;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero-slide {
    height: 500px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 轮播图平滑过渡效果 */
.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
    display: block;
}

/* 当向左滑动时 */
.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-next.carousel-item-start,
.active {
    transform: translateX(0);
}

/* 当向右滑动时 */
.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

.carousel-item-prev.carousel-item-end,
.active {
    transform: translateX(0);
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    background-size: 40%;
}

/* 卡片样式 */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    height: 200px;
    object-fit: cover;
}

/* 新闻卡片样式 */
.news-card {
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    height: 200px;
    object-fit: cover;
}

/* 关于我们页面样式 */
.about-section {
    background-color: #f8f9fa;
}

/* 页脚样式 */
footer {
    background-color: #212529 !important;
}

/* 页面过渡效果 */
.page-fade {
    animation: fadein 0.5s;
}

@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-section,
    .hero-slide {
        height: 300px;
    }
    
    .navbar-brand span {
        font-size: 0.9rem;
    }
    
    .navbar-collapse {
        margin-top: 10px;
    }
    
    .navbar-nav:first-child {
        margin-bottom: 10px;
    }
    
    .navbar-nav:last-child {
        padding-top: 10px;
        border-top: 1px solid #eee;
    }
    
    .navbar-nav:last-child .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .navbar-nav:last-child .btn:last-child {
        margin-bottom: 0;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}

/* 特色模块样式 */
.feature-icon {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 1rem;
}

/* 联系方式样式 */
.contact-info i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #0d6efd;
}

/* 查询模块样式 */
#trackingNumbers {
    resize: vertical;
    min-height: 100px;
}

.card-header h4 {
    font-size: 1.25rem;
}

.card-header h4 i {
    font-size: 1.5rem;
}