切图层和第三板块

This commit is contained in:
2026-09-03 16:33:46 +08:00
parent 4c5994c13c
commit eb183c4a5c
8 changed files with 233 additions and 600 deletions
+138 -334
View File
@@ -1,3 +1,17 @@
@font-face {
font-family: "叶根友飘悦飞草2.0";
src: url("fonts/叶根友飘悦飞草2.0.TTF") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "方正粗倩简体";
src: url("fonts/FZCuQian.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
* {
margin: 0;
padding: 0;
@@ -9,6 +23,7 @@ html {
}
body {
position: relative;
width: 1600px;
margin: 0 auto;
background: #ECEBF1;
@@ -55,7 +70,6 @@ img {
height: 100%;
}
/* 房子图标 */
.topbar .welcome-icon {
position: absolute;
left: 203px;
@@ -65,7 +79,6 @@ img {
height: 13px;
}
/* 欢迎文字 */
.topbar .welcome-text {
position: absolute;
left: 222px;
@@ -75,7 +88,6 @@ img {
white-space: nowrap;
}
/* 欢迎右侧箭头 */
.topbar .welcome-arrow {
position: absolute;
left: 380px;
@@ -85,7 +97,6 @@ img {
height: 5px;
}
/* 军网导航 */
.topbar .nav {
position: absolute;
left: 416px;
@@ -94,7 +105,6 @@ img {
color: #414141;
}
/* 军网导航箭头 */
.topbar .nav-arrow {
position: absolute;
left: 474px;
@@ -104,7 +114,6 @@ img {
height: 5px;
}
/* 搜索框 */
.topbar .searchbox {
position: absolute;
left: 688px;
@@ -157,7 +166,6 @@ img {
color: #626468;
}
/* 用户信息 */
.user-info {
position: absolute;
left: 1046px;
@@ -167,7 +175,6 @@ img {
font-size: 12px;
}
/* 右侧链接组 - 每个链接独立绝对定位 */
.topbar .toplinks-link {
position: absolute;
top: 50%;
@@ -210,7 +217,6 @@ img {
left: 1326px;
}
/* 最右侧箭头 */
.topbar .links-arrow {
position: absolute;
left: 1388px;
@@ -234,6 +240,17 @@ img {
width: 100%;
}
.header-banner .header-logo {
position: absolute;
left: 199px;
right: 1190px;
top: 23px;
bottom: 313px;
width: calc(100% - 1389px);
height: calc(100% - 336px);
object-fit: contain;
}
.header-banner .layer-35 {
position: absolute;
left: 0;
@@ -241,370 +258,157 @@ img {
width: 100%;
}
/* ========== 通用板块容器 ========== */
.section {
.header-banner .layer-35 > img:first-child {
display: block;
width: 100%;
padding: 30px 0;
}
.section .wrap {
.header-banner .layer-side-links {
position: absolute;
left: 1244px;
top: 11px;
display: flex;
gap: 20px;
flex-direction: column;
gap: 7px;
}
/* ========== 板块标题 ========== */
.sec-title {
text-align: center;
margin-bottom: 20px;
.header-banner .layer-side-item {
display: flex;
align-items: center;
gap: 8px;
color: #fff;
white-space: nowrap;
}
.sec-title h2 {
display: inline-block;
font-size: 22px;
color: #1a4a8a;
border-bottom: 2px solid #1a4a8a;
padding: 0 20px 8px;
font-weight: bold;
.header-banner .layer-side-item img {
width: 41px;
height: 41px;
flex-shrink: 0;
}
.sec-title-en {
font-size: 12px;
color: #999;
margin-top: 4px;
.header-banner .layer-side-item span {
font-family: "方正粗倩简体", sans-serif;
font-size: 16px;
font-weight: normal;
font-style: normal;
line-height: 1;
color: #fff;
}
.header-banner .layer-35-content {
position: absolute;
left: 215px;
right: 392px;
top: 12px;
bottom: 0;
display: flex;
align-items: stretch;
color: rgba(255, 255, 255, 0.85);
}
.header-banner .layer-nav-col {
position: relative;
flex: 1;
min-width: 0;
padding: 0 10px;
}
.header-banner .layer-nav-col:not(:last-child)::after {
content: "";
position: absolute;
right: 0;
top: 8px;
width: 1px;
height: 70%;
background: rgba(180, 190, 210, 0.45);
}
.header-banner .layer-nav-col h3 {
font-family: "叶根友飘悦飞草2.0", cursive;
font-size: 24px;
font-weight: normal;
line-height: 1.2;
margin-bottom: 6px;
color: rgba(255, 255, 255, 0.95);
letter-spacing: 1px;
}
/* ========== 板块4:新闻资讯(3列) ========== */
.news-section {
background: #fff;
.header-banner .layer-nav-col ul {
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 6px;
row-gap: 2px;
}
.news-col {
flex: 1;
background: #f9f9f9;
border: 1px solid #e8e8e8;
padding: 15px;
.header-banner .layer-nav-culture ul {
grid-template-columns: repeat(3, auto);
column-gap: 10px;
justify-content: start;
}
.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;
.header-banner .layer-nav-col li a {
display: block;
font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
font-size: 14px;
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;
color: rgba(220, 228, 240, 0.9);
white-space: nowrap;
padding-left: 10px;
position: relative;
}
.news-list li a::before {
content: "·";
.header-banner .layer-nav-col li a:hover {
color: #fff;
}
/* ========== 大标题区 ========== */
.headline-box {
position: absolute;
left: 0;
color: #1a4a8a;
top: 489px;
left: 50%;
transform: translateX(-50%);
width: 1200px;
height: 105px;
background: rgba(255, 255, 255, 0.3);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
z-index: 2;
box-sizing: border-box;
padding: 0 20px;
}
.headline-box .headline-main {
font-size: 40px;
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;
color: #0b408a;
line-height: 1.2;
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 {
.headline-box .headline-subs {
display: flex;
align-items: center;
padding: 12px 0;
border-bottom: 1px dashed #e5e5e5;
font-size: 14px;
justify-content: center;
flex-wrap: wrap;
gap: 8px 16px;
}
.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 {
.headline-box .headline-subs li {
font-size: 16px;
color: #1a4a8a;
margin-bottom: 8px;
text-align: center;
color: #0b408a;
line-height: 1.4;
white-space: nowrap;
}
.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 ========== */
.footer {
width: 100%;
background: #1a4a8a;
color: #fff;
padding: 30px 0;
margin-top: 20px;
margin-top: 120px;
}
.footer .wrap {