diff --git a/src/css/custom.css b/src/css/custom.css index 73e0926..84d7d17 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -268,26 +268,26 @@ body { position: relative; } -.card:after { - content: ''; - position: absolute; - bottom: 0; - left: 0; - right: 0; - height: 2px; - background: linear-gradient(90deg, var(--primary), var(--balance-2)); - border-radius: 0 0 8px 8px; - opacity: 0.7; +/* 卡片标题位置调整 */ +.card__header { + padding: 0; + margin: 0; } -.card:hover { - transform: translateY(-2px); - box-shadow: var(--shadow-sm); - border-color: rgba(230, 92, 79, 0.2); +.card__header h2, +.card__header h3 { + margin-top: 0; + margin-bottom: 0.5rem; +} + +.card__body { + padding: 0; + padding-top: 0.5rem; } .card h2 { font-size: 1.25rem; + margin-top: 0; margin-bottom: 0.75rem; color: var(--balance-1); display: flex; @@ -298,6 +298,25 @@ body { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; + margin-bottom: 0; +} + +.card:after { + content: ''; + position: absolute; + bottom: 0; + left: 0; + right: 0; + height: 2px; + background: linear-gradient(90deg, var(--primary), var(--balance-2)); + border-radius: 0 0 8px 8px; + opacity: 0.7; +} + +.card:hover { + transform: translateY(-2px); + box-shadow: var(--shadow-sm); + border-color: rgba(230, 92, 79, 0.2); } /* ===== 7. 按钮 ===== */ diff --git a/src/pages/index.js b/src/pages/index.js index b8bb6d6..4c29006 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -23,6 +23,8 @@ const defaultImages = [ '/img/hero/bg1.jpg', '/img/hero/bg2.jpg', '/img/hero/bg3.jpg', + '/img/hero/bg4.png', + '/img/hero/bg5.png', ]; /* diff --git a/static/img/hero/bg4.png b/static/img/hero/bg4.png new file mode 100644 index 0000000..c0bcac5 Binary files /dev/null and b/static/img/hero/bg4.png differ diff --git a/static/img/hero/bg5.png b/static/img/hero/bg5.png new file mode 100644 index 0000000..52ab087 Binary files /dev/null and b/static/img/hero/bg5.png differ