* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Microsoft Yahei", PingFangSC-Regular, "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;}
:root {
--emerson-blue: #005eb8;
--emerson-dark: #003c7e;
--emerson-light: #e6f0fa;
--text-dark: #333;
--text-light: #666;
--border: #ddd;
--white: #fff;
--gray: #f5f7fa;
--light-gray: #f9f9f9;
--transition: all 0.3s ease;
}
body {
color: var(--text-dark);
line-height: 1.6;
background-color: var(--white);
}
a {
color: #333;
text-decoration: none;
}
a:hover {
color:#18506D;
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header Styles */
header {
background-color: var(--white);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
}
.top-bar {
background-color: var(--emerson-dark);
color: var(--white);
padding: 8px 0;
font-size: 14px;
}
.top-bar-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.contact-info span {
margin-right: 20px;
}
.language-selector select {
background: transparent;
border: none;
color: var(--white);
font-size: 14px;
}
.main-header {
padding: 15px 0;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
}
.logo img {
height: 40px;
}
.logo h2 {
margin-left: 10px;
font-size: 24px;
color: var(--emerson-blue);
font-weight: 600;
}
nav ul {
display: flex;
list-style: none;
}
nav ul li {
margin-left: 25px;
position: relative;
}
nav ul li a {
text-decoration: none;
color: var(--text-dark);
font-weight: 500;
font-size: 16px;
padding: 8px 5px;
transition: color 0.3s;
}
nav ul li a:hover {
color: var(--emerson-blue);
}
nav ul li a.active {
color: var(--emerson-blue);
border-bottom: 3px solid var(--emerson-blue);
}
.search-icon {
margin-left: 20px;
color: var(--emerson-blue);
cursor: pointer;
}
/* Breadcrumb */
.breadcrumb {
padding: 15px 0;
background-color: var(--light-gray);
margin-bottom: 30px;
border-bottom: 1px solid var(--border);
}
.breadcrumb ul {
display: flex;
list-style: none;
}
.breadcrumb ul li {
margin-right: 10px;
font-size: 14px;
}
.breadcrumb ul li:not(:last-child):after {
content: '>';
margin-left: 10px;
color: var(--text-light);
}
.breadcrumb a {
color: var(--emerson-blue);
text-decoration: none;
}
.breadcrumb a:hover {
text-decoration: underline;
}
/* Page Header */
.page-header {
text-align: center;
padding: 40px 0 30px;
background: linear-gradient(to right, var(--emerson-light), var(--white));
}
.page-header h1 {
font-size: 2.5rem;
color: var(--emerson-dark);
margin-bottom: 15px;
}
.page-header p {
color: var(--text-light);
max-width: 700px;
margin: 0 auto 25px;
}
.header-tabs {
display: flex;
justify-content: center;
flex-wrap: wrap;
max-width: 800px;
margin: 0 auto;
}
.header-tab {
padding: 8px 20px;
background-color: transparent;
border: none;
color: var(--text-light);
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
border-bottom: 3px solid transparent;
margin: 0 5px 10px;
}
.header-tab.active, .header-tab:hover {
color: var(--emerson-blue);
border-bottom: 3px solid var(--emerson-blue);
}
/* News Layout */
.news-layout {
display: grid;
grid-template-columns: 1fr 350px;
gap: 40px;
padding: 30px 0 60px;
}
/* Main Content */
.featured-news {
margin-bottom: 50px;
}
.section-title {
display: flex;
align-items: center;
margin-bottom: 25px;
padding-bottom: 15px;
border-bottom: 2px solid var(--emerson-blue);
}
.section-title h2 {
font-size: 1.8rem;
color: var(--emerson-dark);
}
.section-title .view-all {
margin-left: auto;
color: var(--emerson-blue);
font-weight: 600;
text-decoration: none;
}
.featured-article {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
background: var(--white);
border-radius: 8px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}
.featured-image {
height: 300px;
overflow: hidden;
}
.featured-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s;
}
.featured-article:hover .featured-image img {
transform: scale(1.05);
}
.featured-content {
padding: 30px;
display: flex;
flex-direction: column;
justify-content: center;
}
.featured-badge {
background: var(--emerson-blue);
color: var(--white);
padding: 4px 10px;
border-radius: 4px;
font-size: 12px;
font-weight: 600;
display: inline-block;
margin-bottom: 15px;
}
.featured-content h3 {
font-size: 1.8rem;
color: var(--emerson-dark);
margin-bottom: 15px;
}
.featured-excerpt {
margin-bottom: 20px;
color: var(--text-light);
line-height: 1.8;
}
.meta {
display: flex;
align-items: center;
color: var(--text-light);
font-size: 14px;
margin-bottom: 20px;
}
.meta .date {
margin-right: 20px;
display: flex;
align-items: center;
}
.meta .category {
display: flex;
align-items: center;
}
.meta i {
margin-right: 5px;
color: var(--emerson-blue);
}
/* News List */
.news-list {
display: grid;
grid-template-columns: 1fr;
gap: 30px;
}
.news-item {
display: grid;
grid-template-columns: 200px 1fr;
gap: 25px;
padding-bottom: 30px;
border-bottom: 1px solid var(--border);
transition: var(--transition);
}
.news-item:hover {
transform: translateY(-5px);
}
.news-image {
height: 150px;
border-radius: 8px;
overflow: hidden;
}
.news-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s;
}
.news-item:hover .news-image img {
transform: scale(1.05);
}
.news-content {
display: flex;
flex-direction: column;
justify-content: center;
}
.news-content h3 {
font-size: 16px;
color: var(--emerson-dark);
margin-bottom: 10px;
transition: var(--transition);
}
.news-item:hover .news-content h3 {
color: var(--emerson-blue);
}
.news-excerpt {
color: var(--text-light);
margin-bottom: 15px;
line-height: 1.7;
}
.read-more {
color: var(--emerson-blue);
font-weight: 600;
text-decoration: none;
display: inline-flex;
align-items: center;
}
.read-more i {
margin-left: 5px;
transition: var(--transition);
}
.read-more:hover i {
transform: translateX(5px);
}
/* Sidebar */
.sidebar {
background: var(--white);
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
padding: 25px;
height: fit-content;
}
.sidebar-section {
margin-bottom: 35px;
padding-bottom: 25px;
border-bottom: 1px solid var(--border);
}
.sidebar-section:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.sidebar-section h3 {
color: var(--emerson-dark);
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid var(--emerson-blue);
}
/* Categories */
.category-list {
list-style: none;
}
.category-list li {
margin-bottom: 12px;
}
.category-list a {
color: var(--text-dark);
text-decoration: none;
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
transition: var(--transition);
}
.category-list a:hover {
color: var(--emerson-blue);
}
.category-list a.active {
color: var(--emerson-blue);
font-weight: 600;
}
.category-list .count {
background: var(--emerson-light);
color: var(--emerson-dark);
padding: 2px 8px;
border-radius: 12px;
font-size: 12px;
}
/* Popular News */
.popular-news {
list-style: none;
}
.popular-item {
display: flex;
margin-bottom: 20px;
padding-bottom: 20px;
border-bottom: 1px solid var(--border);
}
.popular-item:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.popular-image {
width: 80px;
height: 80px;
border-radius: 6px;
overflow: hidden;
flex-shrink: 0;
margin-right: 15px;
}
.popular-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.popular-content h4 {
margin-bottom: 8px;
font-size: 1rem;
}
.popular-content .date {
color: var(--text-light);
font-size: 13px;
}
/* Tags */
.tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.tag {
background: var(--emerson-light);
color: var(--emerson-blue);
padding: 6px 12px;
border-radius: 30px;
font-size: 14px;
text-decoration: none;
transition: var(--transition);
}
.tag:hover {
background: var(--emerson-blue);
color: var(--white);
}
/* Subscribe */
.subscribe-form {
margin-top: 20px;
}
.form-group {
margin-bottom: 15px;
}
.form-group input {
width: 100%;
padding: 12px 15px;
border: 1px solid var(--border);
border-radius: 4px;
font-size: 16px;
}
.subscribe-btn {
background: var(--emerson-blue);
color: var(--white);
border: none;
padding: 12px 20px;
width: 100%;
border-radius: 4px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
}
.subscribe-btn:hover {
background: var(--emerson-dark);
}
/* Pagination */
.pagination {
display: flex;
justify-content: center;
margin-top: 50px;
gap: 5px;
}
.page-item {
display: inline-block;
}
.page-link {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border: 1px solid var(--border);
border-radius: 4px;
text-decoration: none;
color: var(--text-dark);
transition: var(--transition);
}
.page-link:hover, .page-link.active {
background: var(--emerson-blue);
color: var(--white);
border-color: var(--emerson-blue);
}
.page-link.disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Footer */
footer {
background-color: var(--emerson-dark);
color: var(--white);
padding: 60px 0 20px;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 40px;
margin-bottom: 40px;
}
.footer-column h3 {
font-size: 1.3rem;
margin-bottom: 20px;
position: relative;
padding-bottom: 10px;
}
.footer-column h3:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 50px;
height: 2px;
background-color: var(--emerson-blue);
}
.footer-column ul {
list-style: none;
}
.footer-column ul li {
margin-bottom: 10px;
}
.footer-column ul li a {
color: #ccc;
text-decoration: none;
transition: color 0.3s;
}
.footer-column ul li a:hover {
color: var(--white);
}
.social-icons {
display: flex;
gap: 15px;
margin-top: 20px;
}
.social-icons a {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 50%;
color: var(--white);
transition: background-color 0.3s;
}
.social-icons a:hover {
background-color: var(--emerson-blue);
transform: translateY(-3px);
}
.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 20px;
text-align: center;
color: #aaa;
font-size: 14px;
}
/* 分页样式 */
.fanye { clear: both;padding: 20px 0 0; font-size: 14px;text-align: center; overflow: hidden;text-indent: 0em;}
.fanye > span { margin: auto 16px; }
.fanye .page-numbar { margin: auto 0; }
.fanye .page-numbar .page-num,
.fanye .page-index,
.fanye .page-pre,
.fanye .page-next,
.fanye .page-last { display: inline-block; margin: auto 4px; padding: 4px 15px; /*border: 1px solid #EEE; */border-radius: 2px; }
.fanye .page-numbar .page-num-current,
.fanye .page-numbar .page-num:hover { border-color:#18506D; background:#3a4e71; color: #fff; }
.page-status {display:none;}
/* Responsive Styles */
@media (max-width: 992px) {
.news-layout {
grid-template-columns: 1fr;
}
.news-item {
grid-template-columns: 1fr;
}
.news-image {
height: 200px;
}
}
@media (max-width: 768px) {
.main-header {
flex-direction: column;
padding: 15px 0;
}
nav ul {
margin-top: 20px;
flex-wrap: wrap;
justify-content: center;
}
nav ul li {
margin: 5px 10px;
}
.featured-article {
grid-template-columns: 1fr;
}
.featured-image {
height: 250px;
}
}