/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    justify-content: center;
}

/* 容器样式 */
.container {
    width: 1000px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.logo img {
    height: 50px;
}

/* 导航栏样式 */
.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin: 0 15px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 5px 10px;
}

.nav a.active,
.nav a:hover {
    color: #1890ff;
    border-bottom: 2px solid #1890ff;
}

/* 用户操作区样式 */
.user-actions {
    display: flex;
    align-items: center;
}

.search {
    display: flex;
    margin-right: 15px;
}

.search input {
    width: 200px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
}

.search button,
.login-btn {
    padding: 5px 15px;
    background: #1890ff;
    color: white;
    border: none;
    cursor: pointer;
}

.search button {
    border-radius: 0 4px 4px 0;
}

.login-btn {
    border-radius: 4px;
}

/* 主要内容区样式 */
.main {
    padding: 20px 0;
}

/* 头条新闻样式 */
.top-news {
    display: flex;
    margin-bottom: 30px;
}

.featured-news {
    flex: 2;
    margin-right: 20px;
}

.featured-news img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

.featured-news h2 {
    margin: 10px 0;
    font-size: 24px;
}

.featured-news a {
    text-decoration: none;
    color: #333;
}

.featured-news a:hover {
    color: #1890ff;
}

.news-list {
    flex: 1;
}

.news-list ul {
    list-style: none;
}

.news-list li {
    margin-bottom: 15px;
}

.news-list a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
}

.news-list a:hover {
    color: #1890ff;
}

/* 热点专题样式 */
.special-topic {
    margin-bottom: 30px;
}

.special-topic h3 {
    margin-bottom: 20px;
    font-size: 20px;
    border-left: 4px solid #1890ff;
    padding-left: 10px;
}

.topic-list {
    display: flex;
    gap: 20px;
}

.topic-item {
    flex: 1;
    background: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
}

.topic-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.topic-item h4 {
    margin-bottom: 10px;
}

.topic-item a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

.topic-item a:hover {
    color: #1890ff;
}

.topic-item p {
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
}

.topic-item .time {
    color: #999;
    font-size: 14px;
}

/* 新闻列表样式 */
.news-section {
    margin-bottom: 30px;
}

.news-column h3 {
    margin-bottom: 20px;
    font-size: 20px;
    border-left: 4px solid #1890ff;
    padding-left: 10px;
}

.news-column ul {
    list-style: none;
}

.news-column li {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.news-column img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 20px;
}

.news-info {
    flex: 1;
}

.news-info h4 {
    margin-bottom: 10px;
}

.news-info a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

.news-info a:hover {
    color: #1890ff;
}

.news-info p {
    color: #666;
    margin-bottom: 10px;
}

.time {
    color: #999;
    font-size: 14px;
}

/* 更多新闻样式 */
.more-news {
    margin-top: 30px;
}

.more-news h3 {
    margin-bottom: 20px;
    font-size: 20px;
    border-left: 4px solid #1890ff;
    padding-left: 10px;
}

.more-news ul {
    list-style: none;
}

.more-news li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.more-news .category {
    color: #1890ff;
    font-size: 14px;
    margin-right: 10px;
    white-space: nowrap;
}

.more-news a {
    flex: 1;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    margin: 0 10px;
}

.more-news a:hover {
    color: #1890ff;
}

.more-news .time {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

/* 客服按钮样式 */
.customer-service {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.cs-btn {
    padding: 10px 20px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.cs-btn:hover {
    background: #40a9ff;
}

.cs-window {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 300px;
    height: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.cs-header {
    padding: 15px;
    background: #1890ff;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-header h3 {
    margin: 0;
    font-size: 18px;
}

.cs-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.cs-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cs-messages {
    margin-bottom: 20px;
}

.cs-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
}

.cs-message.system {
    background: #f0f2f5;
}

.cs-message.user {
    background: #e6f7ff;
    text-align: right;
}

.cs-message.reply {
    background: #f0f2f5;
}

.cs-quick-questions {
    margin-bottom: 20px;
}

.cs-quick-questions h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.cs-quick-questions ul {
    list-style: none;
}

.cs-quick-questions li {
    margin-bottom: 8px;
}

.cs-quick-questions button {
    width: 100%;
    padding: 8px;
    background: #f0f2f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    color: #1890ff;
}

.cs-quick-questions button:hover {
    background: #e6f7ff;
}

.cs-contact {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.cs-contact h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.cs-contact p {
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.cs-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.cs-input textarea {
    flex: 1;
    height: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    font-family: inherit;
}

.cs-input textarea:focus {
    border-color: #1890ff;
    outline: none;
}

.cs-send {
    padding: 0 15px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.cs-send:hover {
    background: #40a9ff;
}

/* 登录弹窗样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 4px;
    width: 360px;
    position: relative;
}

.modal-content h3 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #1890ff;
    outline: none;
}

.error-message {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.error input {
    border-color: #ff4d4f;
}

.form-group.error .error-message {
    display: block;
}

.remember-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin-right: 5px;
}

.forgot-password {
    color: #1890ff;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.modal-content button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 15px;
}

.modal-content button[type="submit"]:hover {
    background: #40a9ff;
}

.form-footer {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.register-link {
    color: #1890ff;
    text-decoration: none;
    margin-left: 5px;
}

.register-link:hover {
    text-decoration: underline;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.close-btn:hover {
    color: #666;
} 