【考证代码】主,分页样式 style.css
body {
margin: 0;
background: #f4f4f4;
color: #444;
}
.header {
background: #fff;
border-bottom: 2px solid #0066b3;
}
.header > div {
max-width: 1200px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
}
.logo {
display: flex;
align-items: center;
padding: 20px 0 10px 40px;
}
.logo img {
height: 48px;
}
.topbar-links {
font-size: 13px;
color: #888;
display: flex;
align-items: center;
gap: 10px;
}
.topbar-links a {
color: #888;
text-decoration: none;
}
.topbar-links a:hover {
color: #0066b3;
text-decoration: underline;
}
.search-bar {
margin-left: 0;
width: 220px;
}
.search-bar input {
width: 100%;
padding: 6px 10px;
border: 1px solid #ccc;
border-radius: 2px;
font-size: 13px;
}
.nav {
background: #0066b3;
}
.nav ul {
margin: 0;
padding: 0;
list-style: none;
display: flex;
max-width: 1200px;
margin: 0 auto;
}
.nav li {
flex: 1;
}
.nav a {
display: block;
color: #fff;
text-align: center;
padding: 14px 0;
text-decoration: none;
font-size: 16px;
transition: background 0.2s;
}
.nav a:hover, .nav a.active {
background: #005090;
}
.container {
max-width: 1200px;
margin: 20px auto;
padding: 0 20px 30px;
box-sizing: border-box;
}
.module {
background: #fff;
border-radius: 4px;
box-shadow: 0 1px 4px #e5e5e5;
border: 1px solid #e5e5e5;
margin-bottom: 20px;
box-sizing: border-box;
}
.module-title {
font-size: 16px;
font-weight: bold;
padding: 12px 18px;
margin: 0;
}
.module-content {
padding: 15px 18px;
}
.footer {
background: #0066b3;
color: #fff;
text-align: center;
padding: 18px 0 10px 0;
font-size: 14px;
margin-top: 30px;
border-top: 4px solid #005090;
}
.footer a {
color: #fff;
margin: 0 8px;
text-decoration: none;
}
.main-banner {
position: relative;
max-width: 1160px;
margin: 30px auto 0 auto;
height: 320px;
overflow: hidden;
border-radius: 6px;
box-shadow: 0 2px 8px #ddd;
}
.carousel-img {
width: 100%;
height: 320px;
position: absolute;
}
.carousel-img.active {
z-index: 1;
}
.carousel-dots {
position: absolute;
right: 30px;
bottom: 18px;
z-index: 2;
}
.carousel-dot {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%;
background: #fff;
opacity: 0.7;
margin: 0 4px;
border: 2px solid #0066b3;
}
.carousel-dot.active {
background: #0066b3;
opacity: 1;
}
.full-width {
width: 100%;
margin-top: 20px;
display: flex;
align-items: stretch;
}
.news-title-column {
width: 180px;
}
.news-content-column {
flex-grow: 1;
padding-bottom: 15px;
}
.vertical-title {
font-size: 16px;
color: #fff;
background: #0066b3;
font-weight: bold;
padding: 12px 15px;
border-radius: 4px;
border: 1px solid #0066b3;
height: 60px;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
}
.vertical-title span:first-child {
display: inline-block;
width: 18px;
height: 18px;
background: #fff;
color: #0066b3;
border-radius: 3px;
text-align: center;
line-height: 18px;
font-size: 13px;
margin-right: 8px;
}
.news-list {
list-style: none;
padding: 0;
margin: 0;
}
.news-list li {
padding: 5px 0;
border-bottom: 1px dotted #e5e5e5;
font-size: 15px;
}
.news-list li:last-child {
border-bottom: none;
}
.news-list li span {
color: #0066b3;
margin-right: 6px;
}
.news-content-column .module-content {
text-align: left;
padding: 8px 18px;
}
.three-columns {
display: flex;
gap: 20px;
margin-top: 20px;
}
.three-columns > div {
flex: 1;
}
.three-columns .module {
padding-bottom: 15px;
}
.three-columns .module-title {
color: #0066b3;
background: #f5f8fa;
border-radius: 4px 4px 0 0;
border-bottom: 1px solid #eaeaea;
display: flex;
align-items: center;
justify-content: space-between;
}
.module-title .more-link {
font-size: 16px;
color: #888;
text-decoration: none;
font-weight: normal;
}
.product-list {
list-style: none;
padding: 0;
margin: 0;
}
.product-list li {
padding: 5px 0;
border-bottom: 1px dotted #e5e5e5;
font-size: 15px;
}
.product-list .cas {
color: #888;
font-size: 13px;
margin-left: 10px;
}
.gallery-container {
position: relative;
overflow: hidden;
padding: 0 18px;
}
.gallery {
display: flex;
padding: 18px 0;
gap: 2%;
transition: transform 0.5s;
width: calc(100% + 2%);
}
.gallery img {
width: 23%;
flex-shrink: 0;
border-radius: 4px;
box-shadow: 0 1px 4px #e5e5e5;
border: 1px solid #e5e5e5;
background: #fff;
}
.gallery-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 30px;
height: 30px;
background: #0066b3;
color: white;
border: none;
border-radius: 50%;
cursor: pointer;
z-index: 10;
opacity: 0.7;
transition: opacity 0.3s;
}
.gallery-btn:hover {
opacity: 1;
}
.prev-btn {
left: 10px;
}
.next-btn {
right: 10px;
}
.enterprise-banner {
width: 100%;
height: 220px;
border-radius: 4px;
overflow: hidden;
position: relative;
margin-bottom: 20px;
background: #f0f5fa;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.banner-bg {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.location-path {
font-size: 14px;
color: #666;
margin: 10px 0 20px;
padding-bottom: 10px;
border-bottom: 1px dotted #e5e5e5;
}
.location-path a {
color: #666;
text-decoration: none;
}
.location-path a:hover, .location-path a.active {
color: #0066b3;
text-decoration: underline;
}
.page-title {
font-size: 20px;
color: #0066b3;
margin: 0 0 20px;
padding-bottom: 10px;
border-bottom: 2px solid #0066b3;
}
.two-columns {
display: flex;
gap: 20px;
}
.sidebar {
width: 260px;
flex-shrink: 0;
}
.main-content {
flex-grow: 1;
}
.article-list {
list-style: none;
padding: 0;
margin: 0;
}
.article-list li {
padding: 10px 0;
border-bottom: 1px dotted #e5e5e5;
}
.article-list li:last-child {
border-bottom: none;
}
.article-list a {
color: #444;
text-decoration: none;
font-size: 15px;
transition: color 0.2s;
}
.article-list a:hover {
color: #0066b3;
text-decoration: underline;
}
.gallery-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-bottom: 30px;
}
.gallery-item {
border: 1px solid #e5e5e5;
border-radius: 4px;
overflow: hidden;
transition: box-shadow 0.3s;
}
.gallery-item:hover {
box-shadow: 0 3px 10px #ddd;
}
.gallery-item img {
width: 100%;
height: 200px;
object-fit: cover;
}
.gallery-caption {
padding: 10px 15px;
text-align: center;
font-size: 14px;
background: #f9f9f9;
border-top: 1px solid #e5e5e5;
}
.pagination {
display: flex;
justify-content: center;
gap: 8px;
margin: 30px 0;
}
.pagination-btn {
width: 36px;
height: 36px;
line-height: 36px;
text-align: center;
border: 1px solid #0066b3;
border-radius: 4px;
background: #fff;
color: #0066b3;
cursor: pointer;
text-decoration: none;
font-size: 14px;
transition: all 0.2s;
}
.pagination-btn:hover, .pagination-btn.active {
background: #0066b3;
color: #fff;
}
.contact-info {
font-size: 15px;
line-height: 2;
}
打赏

网站运行不易·求打赏QAQ