Files
ningbo/web/dbzq.css
T
2026-09-02 11:41:36 +08:00

625 lines
11 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
background: #ECEBF1;
}
body {
width: 1600px;
margin: 0 auto;
background: #ECEBF1;
font-family: "Microsoft YaHei-Regular", Arial, sans-serif;
font-weight: Regular;
color: #333;
}
a {
text-decoration: none;
color: inherit;
}
ul {
list-style: none;
}
img {
display: block;
border: 0;
}
.wrap {
width: 1600px;
margin: 0 auto;
}
/* ========== 板块1:顶部工具栏 ========== */
.topbar {
position: relative;
width: 1600px;
height: 43px;
background: #F7F7F7;
border-bottom: 1px solid #e5e5e5;
font-size: 12px;
color: #555;
margin-bottom: 10px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.topbar .wrap {
position: relative;
width: 1600px;
height: 100%;
}
/* 房子图标 */
.topbar .welcome-icon {
position: absolute;
left: 203px;
top: 50%;
transform: translateY(-50%);
width: 13px;
height: 13px;
}
/* 欢迎文字 */
.topbar .welcome-text {
position: absolute;
left: 222px;
top: 50%;
transform: translateY(-50%);
color: #414141;
white-space: nowrap;
}
/* 欢迎右侧箭头 */
.topbar .welcome-arrow {
position: absolute;
left: 380px;
top: 50%;
transform: translateY(-50%);
width: 8px;
height: 5px;
}
/* 军网导航 */
.topbar .nav {
position: absolute;
left: 416px;
top: 50%;
transform: translateY(-50%);
color: #414141;
}
/* 军网导航箭头 */
.topbar .nav-arrow {
position: absolute;
left: 474px;
top: 50%;
transform: translateY(-50%);
width: 8px;
height: 5px;
}
/* 搜索框 */
.topbar .searchbox {
position: absolute;
left: 688px;
top: 50%;
transform: translateY(-50%);
display: flex;
height: 33px;
}
.topbar .search-input-wrap {
position: relative;
width: 228px;
height: 33px;
}
.topbar .searchbox input {
width: 228px;
height: 33px;
padding: 0 8px 0 28px;
border: 1px solid #ccc;
border-right: 0;
font-size: 12px;
outline: none;
color: #626468;
}
.topbar .searchbox input::placeholder {
color: #626468;
}
.topbar .search-icon {
position: absolute;
left: 9px;
top: 50%;
transform: translateY(-50%);
width: 13px;
height: 13px;
pointer-events: none;
}
.topbar .searchbox button {
height: 33px;
width: 79px;
padding: 0 14px;
border: 1px solid #ccc;
border-left: 0;
background: #fff;
cursor: pointer;
font-size: 12px;
color: #626468;
}
/* 用户信息 */
.user-info {
position: absolute;
left: 1046px;
top: 50%;
transform: translateY(-50%);
color: #414141;
font-size: 12px;
}
/* 右侧链接组 - 每个链接独立绝对定位 */
.topbar .toplinks-link {
position: absolute;
top: 50%;
transform: translateY(-50%);
display: inline-flex;
align-items: center;
gap: 14px;
color: #414141;
}
.topbar .toplinks-link .top-icon {
width: 12px;
height: 12px;
}
.topbar .link-exit .top-icon {
width: 17px;
height: 18px;
}
.topbar .link-register .top-icon {
width: 16px;
height: 18px;
}
.topbar .link-disk .top-icon {
width: 16px;
height: 15px;
}
.topbar .link-exit {
left: 1164px;
}
.topbar .link-register {
left: 1246px;
}
.topbar .link-disk {
left: 1326px;
}
/* 最右侧箭头 */
.topbar .links-arrow {
position: absolute;
left: 1388px;
top: 50%;
transform: translateY(-50%);
width: 8px;
height: 5px;
}
.topbar .toplinks-link:hover {
color: #c00;
}
/* ========== 板块3:网站头部切图 ========== */
.header-banner {
width: 100%;
}
.header-banner img {
width: 100%;
}
/* ========== 通用板块容器 ========== */
.section {
width: 100%;
padding: 30px 0;
}
.section .wrap {
display: flex;
gap: 20px;
}
/* ========== 板块标题 ========== */
.sec-title {
text-align: center;
margin-bottom: 20px;
}
.sec-title h2 {
display: inline-block;
font-size: 22px;
color: #1a4a8a;
border-bottom: 2px solid #1a4a8a;
padding: 0 20px 8px;
font-weight: bold;
}
.sec-title-en {
font-size: 12px;
color: #999;
margin-top: 4px;
letter-spacing: 1px;
}
/* ========== 板块4:新闻资讯(3列) ========== */
.news-section {
background: #fff;
}
.news-col {
flex: 1;
background: #f9f9f9;
border: 1px solid #e8e8e8;
padding: 15px;
}
.news-col h3 {
font-size: 16px;
color: #1a4a8a;
border-bottom: 1px solid #1a4a8a;
padding-bottom: 8px;
margin-bottom: 12px;
}
.news-pic img {
width: 100%;
height: 180px;
background: #ddd;
object-fit: cover;
}
.news-pic h4 {
font-size: 15px;
color: #333;
margin: 10px 0 6px;
line-height: 1.5;
}
.news-pic p {
font-size: 12px;
color: #888;
line-height: 1.6;
}
.news-list li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px dashed #eee;
font-size: 13px;
}
.news-list li a {
color: #333;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding-left: 10px;
position: relative;
}
.news-list li a::before {
content: "·";
position: absolute;
left: 0;
color: #1a4a8a;
font-weight: bold;
}
.news-list li .date {
color: #999;
font-size: 12px;
}
.news-list li a:hover {
color: #c00;
}
.news-rank li {
display: flex;
align-items: center;
padding: 7px 0;
border-bottom: 1px dashed #eee;
font-size: 13px;
}
.news-rank .rank-num {
display: inline-block;
width: 18px;
height: 18px;
line-height: 18px;
text-align: center;
background: #ccc;
color: #fff;
font-size: 12px;
margin-right: 8px;
}
.news-rank li:nth-child(-n+3) .rank-num {
background: #c00;
}
.news-rank li a {
color: #333;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.news-rank li a:hover {
color: #c00;
}
/* ========== 蓝色波浪分隔条 ========== */
.divider-wave {
width: 100%;
height: 60px;
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 60' preserveAspectRatio='none'><path d='M0,30 Q200,0 400,30 T800,30 T1200,30 T1600,30 L1600,60 L0,60 Z' fill='%231a4a8a' opacity='0.15'/><path d='M0,40 Q200,20 400,40 T800,40 T1200,40 T1600,40' stroke='%231a4a8a' stroke-width='2' fill='none'/></svg>") center/100% 100% no-repeat;
}
.divider-wave-2 {
width: 100%;
height: 50px;
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 50' preserveAspectRatio='none'><path d='M0,25 C200,5 400,45 800,25 C1200,5 1400,45 1600,25 L1600,50 L0,50 Z' fill='%231a4a8a' opacity='0.1'/></svg>") center/100% 100% no-repeat;
}
/* ========== 红色丝带分隔条 ========== */
.divider-ribbon {
width: 100%;
height: 50px;
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 50' preserveAspectRatio='none'><path d='M0,15 L1600,15 L1600,35 L800,45 L0,35 Z' fill='%23c00' opacity='0.85'/><path d='M0,15 L1600,15' stroke='%23ff6b6b' stroke-width='1'/></svg>") center/100% 100% no-repeat;
}
/* ========== 板块5:中心内容(标题+文章列表) ========== */
.article-section {
background: #fff;
}
.article-section .wrap {
display: block;
}
.article-list {
margin-top: 20px;
}
.article-list li {
display: flex;
align-items: center;
padding: 12px 0;
border-bottom: 1px dashed #e5e5e5;
font-size: 14px;
}
.article-list li .tag {
display: inline-block;
padding: 2px 8px;
background: #1a4a8a;
color: #fff;
font-size: 12px;
margin-right: 12px;
border-radius: 2px;
}
.article-list li a {
flex: 1;
color: #333;
}
.article-list li a:hover {
color: #c00;
}
.article-list li .date {
color: #999;
font-size: 12px;
}
/* ========== 板块63卡片网格 ========== */
.card-grid-3 {
display: flex;
gap: 20px;
}
.card {
flex: 1;
background: #f9f9f9;
border: 1px solid #e8e8e8;
overflow: hidden;
}
.card img {
width: 100%;
height: 200px;
background: #ddd;
object-fit: cover;
}
.card-body {
padding: 15px;
}
.card-body h4 {
font-size: 16px;
color: #1a4a8a;
margin-bottom: 8px;
text-align: center;
}
.card-body p {
font-size: 13px;
color: #666;
line-height: 1.6;
}
/* ========== 板块7:双列+侧边栏 ========== */
.layout-sidebar {
display: flex;
gap: 20px;
}
.sidebar {
width: 260px;
background: #f9f9f9;
border: 1px solid #e8e8e8;
}
.sidebar h3 {
background: #1a4a8a;
color: #fff;
padding: 12px 15px;
font-size: 16px;
}
.sidebar ul li a {
display: block;
padding: 10px 15px;
border-bottom: 1px solid #eee;
color: #333;
font-size: 14px;
}
.sidebar ul li a:hover {
background: #e8eef7;
color: #1a4a8a;
}
.main-content {
flex: 1;
background: #f9f9f9;
border: 1px solid #e8e8e8;
padding: 20px;
}
.main-content h3 {
font-size: 18px;
color: #1a4a8a;
border-bottom: 2px solid #1a4a8a;
padding-bottom: 8px;
margin-bottom: 15px;
}
/* ========== 板块84卡片网格(2x2 ========== */
.card-grid-4 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
/* ========== 板块9:双列内容 ========== */
.two-col {
display: flex;
gap: 20px;
}
.two-col-block {
flex: 1;
background: #f9f9f9;
border: 1px solid #e8e8e8;
padding: 20px;
}
.two-col-block h3 {
font-size: 18px;
color: #1a4a8a;
border-bottom: 2px solid #1a4a8a;
padding-bottom: 8px;
margin-bottom: 15px;
}
.two-col-block .desc {
color: #666;
font-size: 13px;
line-height: 1.8;
}
/* ========== 板块102x2图片网格 ========== */
.img-grid-2x2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 15px;
}
.img-grid-2x2 .img-item {
position: relative;
}
.img-grid-2x2 img {
width: 100%;
height: 240px;
background: #ddd;
object-fit: cover;
}
.img-grid-2x2 .img-caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.6);
color: #fff;
padding: 8px 12px;
font-size: 14px;
}
/* ========== 板块:Footer ========== */
.footer {
width: 100%;
background: #1a4a8a;
color: #fff;
padding: 30px 0;
margin-top: 20px;
}
.footer .wrap {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.footer-left h4 {
font-size: 18px;
margin-bottom: 10px;
}
.footer-left p {
font-size: 13px;
line-height: 1.8;
color: #c8d4e8;
}
.footer-right {
text-align: right;
font-size: 12px;
color: #c8d4e8;
line-height: 1.8;
}