body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
}

.logo-text {
    margin-left: 10px;
    font-weight: bold;
    font-size: 24px;
    color: #444;
}

.login-btn {
    background-color: #e5e5e5;
    color: #343434;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* 轮播图样式 */
.slider-container {
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.layui-carousel {
    height: 400px !important;
}

.carousel-item {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.1);
}

.carousel-text {
    max-width: 80%;
    padding: 30px;
    border-radius: 8px;
}

.carousel-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.carousel-text p {
    font-size: 18px;
    margin-bottom: 0;
}

/* 登录入口样式 */
.login-entries {
    margin: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: #444;
    font-size: 26px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #444;
}

.entries-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.entry-card {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 30px 20px;
}

.entry-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.entry-icon {
    font-size: 40px;
    color: #1e9fff;
    margin-bottom: 20px;
}

.entry-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #444;
}

.entry-desc {
    color: #666;
    margin-bottom: 20px;
}

.entry-btn {
    background-color: #1e9fff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 17px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.entry-btn:hover {
    opacity: 0.8;
}

/* 内容盒子样式 */
.content-section {
    margin: 50px 0;
}

.content-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.content-card {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-1px);
}

.content-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.content-info {
    padding: 20px;
}

.content-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1e9fff;
}

.content-desc {
    color: #666;
    font-size: 15px;
}

/* 页脚样式 */
footer {
    background-color: #222;
    color: #ddd;
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    margin-bottom: 20px;
    gap: 20px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 14px;
    color: #aaa;
}

/* 溯源搜索区域样式 */
.traceability-search {
    background-size: cover;
    background-position: center;
    padding: 40px 0;
    margin: 10px 0;
    text-align: center;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-title {
    color: #444;
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: bold;
}

.search-desc {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-box {
    display: flex;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background-color: #1e9fff;
    color: white;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    opacity: 0.8;
}

.search-tip {
    font-size: 14px;
    opacity: 0.8;
}

.footer-img {
    height: 18px;
}

#video {
    width: 100%;
}

/* 响应式 */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        border-radius: 8px;
    }

    .search-input {
        padding: 12px 20px;
    }

    .search-btn {
        padding: 12px 20px;
        justify-content: center;
    }

    .search-title {
        font-size: 26px;
    }

    .search-desc {
        font-size: 16px;
    }
}