@charset "utf-8";
/* ===== 项目四 网页设计 —— “西式甜品网”首页样式 ===== */

/* 重置浏览器默认样式 */
* { margin: 0; padding: 0; border: 0; background: none; }

/* 全局控制 */
body {
    font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    color: #333;
    background: #fff;
}

/* ---------------- 1. 头部模块 ---------------- */
.head {
    width: 980px;
    height: 80px;
    margin: 0 auto;          /* 模块在页面中居中显示 */
    position: relative;      /* 为内部绝对定位做参照 */
    border-bottom: 1px solid #f0ead9;
}
.logo {
    position: absolute;
    left: 100px;
    top: 15px;
}
.login {
    position: absolute;
    right: 100px;
    top: 34px;
    color: #ff9c00;
    cursor: pointer;
    font-size: 18px;
}
.login span:hover { color: #9c5132; }

/* ---------------- 2. 导航模块 ---------------- */
.nav {
    width: 100%;
    height: 50px;
    background: #ff9c00;     /* 通栏橙色背景 */
}
.nav_in {
    width: 820px;
    margin: 0 auto;          /* 导航内容在页面中居中 */
    line-height: 50px;
    color: #fff;
    padding-left: 160px;
}
.nav_in span {
    float: left;
    padding: 0 38px;
    color: #9c5132;
    cursor: pointer;
}
.nav_in span:hover { color: #fff; }

/* ---------------- 3. banner 模块 ---------------- */
.banner { text-align: center; font-size: 0; }
.banner img { width: 980px; display: inline-block; vertical-align: top; }

/* ---------------- 4. 产品分类模块 ---------------- */
.list {
    width: 100%;
    height: 240px;
    background: #e7bf80;
}
.list .list_in {
    width: 940px;
    height: 195px;
    margin: 0 auto;          /* 内容在页面中居中 */
    padding: 45px 0 0 40px;
}
.list .list_in div {
    float: left;
    width: 146px;
    height: 55px;
    padding-top: 95px;       /* 文字下移，顶部留给圆形图标 */
    margin-right: 42px;
    background: url(../images/list1.png) no-repeat;
    text-align: center;
    color: #9c5132;
    cursor: pointer;
}
.list .list_in .list2 { background: url(../images/list2.png) no-repeat; }
.list .list_in .list3 { background: url(../images/list3.png) no-repeat; }
.list .list_in .list4 { background: url(../images/list4.png) no-repeat; }
.list .list_in .list5 { background: url(../images/list5.png) no-repeat; }

/* ---------------- 5. 产品展示模块 ---------------- */
.content {
    width: 100%;
    height: 570px;
    background: #f8f5bc;
}
.con {
    width: 912px;
    height: 530px;
    margin: 0 auto;
    padding: 24px 0 0 68px;
}
.con .con_type {
    width: 180px;
    height: 236px;
    border: 1px solid #ccc;
    float: left;
    background: #fff;
    margin: 0 39px 26px 0;
    font-size: 14px;
    color: #9c5132;
    overflow: hidden;
}
.con .con_type:hover { box-shadow: 0 4px 12px rgba(156, 81, 50, .25); }
.con .con_type img {
    display: block;
    width: 158px;
    height: 122px;
    margin: 12px auto 3px;
}
.con .con_type span {
    display: block;          /* span 转块元素，换行显示文字 */
    padding: 11px 0 0 16px;
    line-height: 20px;
}
.con .con_type span.con_name { color: #fd8187; }
.con .con_type span b {
    font-weight: normal;
    color: #fd8187;
}

/* ---------------- 6. 版权信息模块 ---------------- */
.footer {
    position: relative;
    top: 8px;
    width: 100%;
    height: 120px;
    background: url(../images/footer.png) repeat-x;  /* 背景沿 X 轴平铺 */
    text-align: center;
    line-height: 120px;
    color: #fff;
    font-size: 18px;
}
