﻿<style >
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
}

.layui-container {
    line-height: 1.6;
    width: 100%;
    left: auto;
    right: auto;
}

.container {
    /* width: 100%; */
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
    background-image: url('/images/dejingate1200x360.png');
    /* 背景图片覆盖整个元素 */
    background-size: cover;
    /* 背景图片不重复 */
    background-repeat: no-repeat;
    /* 背景图片居中显示 */
    background-position: center;
    /* 其他样式，例如高度和宽度 */
    height: 300px; /* 根据需要调整 */
    width: 100%; /* 根据需要调整 */
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo h1 {
        font-size: 24px;
        color: #1a73e8;
        margin-left: 10px;
    }

    .logo i {
        font-size: 28px;
        color: #1a73e8;
    }

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.content {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

    .search-box input {
        flex: 1;
        padding: 8px 15px;
        border: none;
        outline: none;
        font-size: 14px;
    }

    .search-box button {
        background: #1a73e8;
        color: white;
        border: none;
        padding: 0 15px;
        cursor: pointer;
        font-size: 14px;
    }

        .search-box button:hover {
            background: #0d47a1;
        }

nav ul {
    display: flex;
    list-style: none;
}

    nav ul li {
        margin-left: 25px;
    }

        nav ul li a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
        }

            nav ul li a:hover {
                color: #1a73e8;
            }

.auth-buttons {
    width: 180px;
    display: flex;
    gap: 10px;
}

/* 轮播图区域 */
/* 轮播图区域 */
.banner-section {
    margin-top: 10px;
}

.carousel-container {
    /* position: relative; */
    width: 100%;
    height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* overflow: hidden;
            border-radius: 4px; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-item {
    height: 400px;
    width: auto;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-section {
    flex: 0 0 60%;
    padding: 20px;
    border-right: 1px solid #eee;
}

.tab-section {
    flex: 0 0 40%;
    padding: 20px;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    position: relative;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
}

    .carousel-item.active {
        opacity: 1;
    }

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 4px;
    width: 100%;
}

    .carousel-caption h3 {
        margin-bottom: 8px;
        font-size: 20px;
    }

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

    .carousel-dot.active {
        background: white;
    }

/* 选项卡样式 */
.tab-header {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #7f8c8d;
    position: relative;
    transition: color 0.3s;
}

    .tab-btn.active {
        color: #3498db;
        font-weight: bold;
    }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 3px;
            background: #3498db;
        }

.tab-content {
    min-height: 340px;
}

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
        animation: fadeIn 0.5s;
    }

@@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.news-list {
    list-style: none;
}

.news-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
}

    .news-item:last-child {
        border-bottom: none;
    }

.news-date {
    flex: 0 0 80px;
    color: #7f8c8d;
    font-size: 14px;
}

.news-title {
    flex: 1;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .news-title:hover {
        color: #3498db;
    }

/* 分类区域 */
.categories {
     padding: 10px 0;
            background: white; 
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

    .section-title h2 {
        font-size: 28px;
        color: #333;
        margin-bottom: 10px;
    }

    .section-title p {
        color: #757575;
        max-width: 600px;
        margin: 0 auto;
    }

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.category-card {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    width: 32%;
    margin-bottom: 15px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
}

    .category-card:hover {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .category-card i {
        font-size: 32px;
        color: #1a73e8;
        margin-bottom: 15px;
    }

    .category-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .category-card p {
        color: #757575;
        font-size: 14px;
    }

.cards-container {
    margin-bottom: 50px;
    overflow: hidden;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s;
    width: 32%;
    float: left;
    margin-right: 2%;
}

    .card:last-child {
        margin-right: 0;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

.card-header {
    background: #1E9FFF;
    color: white;
    padding: 15px 20px;
    overflow: hidden;
}

    .card-header h3 {
        font-size: 18px;
        margin: 0;
        float: left;
    }

    .card-header i {
        font-size: 20px;
        float: right;
    }

.card-body {
    padding: 20px;
}

.news-item, .notice-item {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    overflow: hidden;
}

    .news-item:last-child, .notice-item:last-child {
        border-bottom: none;
    }

.news-title, .notice-title {
    font-weight: 500;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .news-title a, .notice-title a {
        color: #333;
        text-decoration: none;
    }

        .news-title a:hover, .notice-title a:hover {
            color: #1E9FFF;
        }

.news-date, .notice-date {
    color: #999;
    font-size: 13px;
}

.more-link {
    display: block;
    text-align: right;
    margin-top: 15px;
    color: #1E9FFF;
    text-decoration: none;
    font-weight: 500;
}

/* 工作流程 */
.workflow {
    padding: 50px 0;
    background: white;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    position: relative;
}

    .workflow-steps::before {
        content: '';
        position: absolute;
        top: 40px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: #e0e0e0;
        z-index: 1;
    }

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 200px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #1a73e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step p {
    color: #757575;
    font-size: 14px;
}


/* 数据统计 */
.stats-container {
    margin-bottom: 50px;
    overflow: hidden;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    width: 20%;
    float: left;
    margin-right: 1.33%;
}

    .stat-card:last-child {
        margin-right: 0;
    }

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

.stat-icon {
    font-size: 36px;
    color: #1E9FFF;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #1E9FFF;
    margin-bottom: 5px;
}

.stat-title {
    color: #666;
    font-size: 16px;
}

/* 底部 */
footer {
    background: #1a73e8;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-column {
    width: 23%;
    margin-bottom: 20px;
}

    .footer-column h3 {
        font-size: 18px;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }

        .footer-column h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 2px;
            background: #1a73e8;
        }

    .footer-column ul {
        list-style: none;
    }

        .footer-column ul li {
            margin-bottom: 10px;
        }

            .footer-column ul li a {
                color: #bdc3c7;
                text-decoration: none;
            }

                .footer-column ul li a:hover {
                    color: white;
                }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 14px;
}

/* 响应式设计 */
@@media (max-width: 992px) {
    .header-center {
        max-width: 300px;
    }
}

@@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        padding: 15px 0;
    }

    .header-center {
        max-width: 100%;
        margin: 15px 0;
        order: 3;
        width: 100%;
    }

    nav ul {
        margin: 15px 0;
    }

    .auth-buttons {
        margin-top: 10px;
        width: 180px;
    }

    .carousel-content h2 {
        font-size: 26px;
    }

    .carousel-content p {
        font-size: 16px;
    }

    .category-card, .supplier-card {
        width: 48%;
    }

    .workflow-steps {
        flex-direction: column;
        align-items: center;
    }

        .workflow-steps::before {
            display: none;
        }

    .step {
        margin-bottom: 30px;
    }

    .footer-column {
        width: 48%;
    }
}

@@media (max-width: 480px) {
    .category-card, .supplier-card, .footer-column {
        width: 100%;
    }

    .carousel-container {
        height: 300px;
    }
}

</style >
