/* 
 * 南平市公共资源电子交易平台 - 主样式表
 * 作者: 前端开发团队
 * 创建时间: 2024-03-06
 */

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

html{
    height:100%;
}
/* 基础页面样式 */
body {
    height: 100%;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    line-height: 1.5;
    color: #2C3A47;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5; /* 备用背景色 */
    text-align: center;
}

/* IE8 背景图片兼容 */
.main-container {
    *
    zoom: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    height: 100%;
    position: relative;
}

/* 头部内容样式 */
.header-content {
    *zoom: 1;
    width: 100%;
    max-width: 800px;
    margin: 96px auto 0;
    text-align: center;
}

.header-content:after {
    content: "";
    display: table;
    clear: both;
}

/* Logo样式 */
.logo {
    width: 120px;
    height: 44px;
    margin: 20px 1rem 0 0;
    display: inline-block;
    vertical-align: middle;
}

/* Logo图片样式 */
.logo-img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* 站点标题 */
.site-title {
    font-size: 48px;
    font-weight: bold;
    color: #1E3799;
    text-align: center;
    margin-bottom: 32px;
    display:inline-block;
    vertical-align: top;
}

/* 主要内容区 */
.content {
    *
    zoom: 1;
    position: relative;
    width: 100%;
    padding: 32px 0;
    text-align: center;
    height: calc(100% - 210px);
    min-height: 400px;
}

/* 卡片容器 */
.cards-container {
    *
    zoom: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    text-align: center;
    font-size: 0; /* 清除inline-block间距 */
}

/* 按钮卡片样式 */
.button-card {
    display: inline-block;
    *
    display: inline;
    *
    zoom: 1;
    vertical-align: top;
    width: 320px;
    height: 160px;
    margin-left: 47px;
    padding: 16px;
    transition: all 0.3s ease;
    background: #fff;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    border-radius: 0.75rem;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.8);
}

.button-card:nth-child(1) {
    margin-left:0;
}

/* 卡片悬停效果 */
 
.button-card:hover,
.button-card:focus {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

/* 图标样式 */
.button-icon {
    width: 48px;
    height: 48px;
    margin: 20px auto 16px;
}

.button-icon img {
    width: 100%;
    height: 100%;
}

/* 按钮文字 */
.button-text {
    font-size: 18px;
    font-weight: 500;
    color: #1E3799;
    display: block;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .header-content {
        margin-top: 48px;
    }
    
    .logo {
        width: 96px;
        height: 96px;
    }
    
    .site-title {
        font-size: 36px;
    }
    
    .button-card {
        width: 90%;
        max-width: 288px;
        height: 128px;
    }
}

@media screen and (max-width: 480px) {
    .header-content {
        margin-top: 32px;
        padding: 8px;
    }
    
    .site-title {
        font-size: 28px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .button-card {
        height: 128px;
        margin: 8px auto;
    }
    
    .button-icon {
        width: 40px;
        height: 40px;
    }
    
    .button-text {
        font-size: 16px;
    }
} 