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

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4; /* 设置一个基础背景色 */
    min-height: 100vh;
}

/* 顶部logo区域 */
.header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.logo {
    height: 50px;
    width: auto;
}

/* 顶部图片区域 */
.top-banner {
    width: 100%;
    height: 950px; /* 您可以调整这个高度 */
    background-image: url('../image/new-background.jpg');
    background-size: cover;
    background-position: center;
}

/* 导语和卷轴区域 */
.intro-section {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    padding: 40px 20px;
}

/* 建言献策区域 */
.suggestion-section {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    padding: 40px 20px;
}

/* 统一的 section-title 样式 */
.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding: 15px 40px;
    background-color: rgba(255, 255, 255, 0.1); /* 标题背景色微调 */
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* 卷轴容器 */
.scroll-container {
    max-width: 950px;
    margin: 0 auto;
    min-height:auto; /* 高度由内容决定 */
    padding: 60px 40px;
    background: linear-gradient(135deg, #d4af37, #f4e4bc, #d4af37);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.scroll-content {
    background: rgba(250, 247, 240, 0.95);
    padding: 60px;
    border-radius: 15px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.intro-text {
    min-height: auto; /* 高度由内容决定 */
    font-size: 18px;
    line-height: 2.0;
    text-align: justify;
    color: #333;
    text-indent: 2em;
}

/* 建言献策区域的容器 */
.suggestion-section .layui-container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
}

/* 建言类别卡片 */
.category-card {
    background: white;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid;
    margin-bottom: 20px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.card-text {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

/* 不同颜色边框 */
.green-border { border-color: #10b981; }
.blue-border { border-color: #3b82f6; }
.yellow-border { border-color: #f59e0b; }
.purple-border { border-color: #8b5cf6; }
.cyan-border { border-color: #06b6d4; }
.pink-border { border-color: #ec4899; }
.purple2-border { border-color: #7c3aed; }
.orange-border { border-color: #f97316; }
.green2-border { border-color: #059669; }
.red-border { border-color: #dc2626; }
.blue2-border { border-color: #2563eb; }
.red2-border { border-color: #dc2626; }
.orange2-border { border-color: #ea580c; }
.green3-border { border-color: #16a34a; }
.yellow2-border { border-color: #d97706; }

/* 底部 */
.footer {
    position: relative;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.footer-content {
    position: relative;
    z-index: 10;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-text {
    font-size: 14px;
    opacity: 0.8;
}
/* 图标图片样式 */
.icon-image {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}
/* 响应式设计 */
@media (max-width: 768px) {
   /* --- 核心修复：手机端 Logo 样式 --- */
    /* 顶部图片区域 */
        .top-banner {
            position: static; /* 取消定位基准 */
            height: 200px; /* 手机端图片高度 */
        }

        /* 顶部logo区域 */
        .header {
            position: static; /* 关键：取消绝对定位，让它回归正常的文档流 */
            padding: 15px;
            background:linear-gradient(135deg, #dc2626, #ef4444); /* 为 Logo 单独设置背景色 */
            text-align: left; /* Logo 居左 */
        }
        .logo {
                height: 40px; /* 手机端 Logo 尺寸 */
            }
     /* 底部logo手机端样式调整 */
        .footer-logo {
            height: 35px; /* 减小手机端底部logo尺寸 */
            margin-bottom: 15px;
        }
    .intro-section, .suggestion-section {
        padding: 30px 15px;
    }

    .section-title h2 {
        font-size: 1.8rem;
        padding: 10px 25px;
    }

    .scroll-container {
        padding: 20px;
    }

    .scroll-content {
        padding: 25px;
    }

    .intro-text {
        font-size: 14px;
    }

    .card-text {
        font-size: 14px;
    }

    .layui-col-xs12 {
        width: 50% !important;
    }
}

@media (max-width: 480px) {
    .header {
        top: 10px;
        left: 10px;
    }

    .logo {
        height: 30px;
    }
    /* 更小屏幕的底部logo */
        .footer-logo {
            height: 30px; /* 进一步减小logo尺寸 */
            margin-bottom: 12px;
        }
    .top-banner {
        height: 200px; /* 小屏幕进一步减小图片高度 */
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .card-text {
        font-size: 12px;
    }
}