/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

/* 布局容器 */
.container {
    width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 60px;
}

.logo {
    margin-right: 30px;
}

.logo img {
    height: 40px;
}

/* 导航菜单 */
.nav ul {
    display: flex;
}

.nav li {
    margin: 0 15px;
}

.nav a {
    font-size: 16px;
    padding: 5px 0;
}

.nav a.active {
    color: #2d85f0;
    border-bottom: 2px solid #2d85f0;
}

/* 用户区域 */
.user-area {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.login-btn {
    margin-right: 20px;
    padding: 5px 15px;
    border: 1px solid #2d85f0;
    color: #2d85f0;
    border-radius: 3px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 200px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
    outline: none;
}

.search-box button {
    padding: 5px 15px;
    background-color: #2d85f0;
    color: #fff;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

/* 主要内容区 */
.main-content {
    margin-top: 80px;
}

/* 焦点新闻 */
.focus-news {
    display: flex;
    margin-bottom: 30px;
}

.main-news {
    flex: 2;
    margin-right: 20px;
}

.main-news img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
}

.main-news h2 {
    margin-top: 10px;
    font-size: 24px;
}

.sub-news {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sub-news .news-item {
    margin-bottom: 20px;
}

.sub-news img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

.sub-news h3 {
    margin-top: 10px;
    font-size: 18px;
}

/* 新闻列表 */
.news-list .news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-list h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.news-list .time {
    color: #999;
    font-size: 14px;
}

/* 弹窗样式 */
.login-modal,
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    width: 400px;
}

.modal-content h2 {
    margin-bottom: 20px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.modal-content button {
    width: 100%;
    padding: 10px;
    background-color: #2d85f0;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.close-modal {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #999;
}

/* 客服按钮样式 */
.service-btn {
    padding: 5px 15px;
    margin-left: 10px;
    background-color: #2d85f0;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.service-btn:hover {
    background-color: #2570d4;
} 