611 lines
34 KiB
CSS
611 lines
34 KiB
CSS
/*
|
|
Theme Name: 空笺未寄
|
|
Version: 0.13.0
|
|
Requires at least: 6.0
|
|
Requires PHP: 7.4
|
|
License: MIT
|
|
Text Domain: kj-weji
|
|
*/
|
|
|
|
:root {
|
|
--paper: #faf5ed;
|
|
--paper-warm: #f6efe3;
|
|
--ink: #2c2416;
|
|
--ink-light: #6b5e4a;
|
|
--ink-lighter: #9b8d7a;
|
|
--cinnabar: #b5433a;
|
|
--cinnabar-light: #d4746b;
|
|
--border: #e0d6c5;
|
|
--border-light: #ede4d3;
|
|
--shadow: rgba(44, 36, 22, 0.06);
|
|
--white: #fefcf7;
|
|
--radius: 6px;
|
|
--radius-lg: 12px;
|
|
--topbar-height: 64px;
|
|
}
|
|
* { margin:0; padding:0; box-sizing:border-box; }
|
|
body {
|
|
font-family: "Source Han Serif SC", "STSong", "Songti SC", "PingFang SC", "Microsoft YaHei", Georgia, serif;
|
|
background-color: #f0ece3;
|
|
background-image:
|
|
radial-gradient(ellipse at 20% 50%, rgba(180, 160, 130, 0.08) 0%, transparent 60%),
|
|
radial-gradient(ellipse at 80% 20%, rgba(160, 140, 110, 0.05) 0%, transparent 50%);
|
|
color: var(--ink);
|
|
min-height: 100vh;
|
|
line-height: 1.8;
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: calc(var(--topbar-height) + 24px) 20px 40px;
|
|
}
|
|
.platform {
|
|
width: 100%;
|
|
max-width: 960px;
|
|
background: var(--paper);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: 0 2px 20px var(--shadow), 0 1px 3px rgba(0,0,0,0.04);
|
|
overflow: visible;
|
|
position: relative;
|
|
}
|
|
.platform::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0; left: 0; right: 0;
|
|
height: 3px;
|
|
background: linear-gradient(90deg, transparent 0%, var(--cinnabar) 20%, var(--cinnabar) 80%, transparent 100%);
|
|
opacity: 0.5;
|
|
}
|
|
.top-bar {
|
|
position: fixed;
|
|
top: 0; left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 100%;
|
|
max-width: 960px;
|
|
height: var(--topbar-height);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 40px;
|
|
background: rgba(250,245,237,0.92);
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
border-bottom: 1px solid var(--border-light);
|
|
z-index: 100;
|
|
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
|
|
box-shadow: 0 1px 8px rgba(44,36,22,0.04);
|
|
}
|
|
.logo-area { display:flex; align-items:baseline; gap:10px; cursor:pointer; }
|
|
.logo { font-size:22px; font-weight:700; letter-spacing:0.15em; color:var(--ink); }
|
|
.nav-links { display:flex; gap:28px; list-style:none; font-size:14px; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
|
|
.nav-links a { text-decoration:none; color:var(--ink-light); transition:color 0.25s; letter-spacing:0.05em; cursor:pointer; position:relative; }
|
|
.nav-links a:hover, .nav-links a.active, .nav-links .current-menu-item > a, .nav-links .current_page_item > a { color:var(--cinnabar); }
|
|
.nav-links a.active::after, .nav-links .current-menu-item > a::after, .nav-links .current_page_item > a::after {
|
|
content:''; position:absolute; bottom:-4px; left:50%; transform:translateX(-50%);
|
|
width:4px; height:4px; background:var(--cinnabar); border-radius:50%;
|
|
}
|
|
.main-content { padding:40px; min-height:500px; }
|
|
|
|
/* 首页 */
|
|
.hero { text-align:center; padding:48px 20px 32px; }
|
|
.hero h1 { font-size:36px; font-weight:400; letter-spacing:0.2em; margin-bottom:12px; }
|
|
.hero .couplet { font-size:15px; color:var(--ink-light); letter-spacing:0.15em; line-height:2.2; }
|
|
.hero .couplet span { color:var(--cinnabar); }
|
|
.intro-text { margin-top:28px; font-size:14px; color:var(--ink-lighter); max-width:480px; margin-left:auto; margin-right:auto; line-height:2; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
|
|
|
|
.pinned-section { margin-top:20px; margin-bottom:36px; }
|
|
.pinned-label { font-size:12px; color:var(--cinnabar); letter-spacing:0.2em; margin-bottom:12px; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; display:flex; align-items:center; gap:8px; }
|
|
.pinned-label::after { content:''; flex:1; height:1px; background:var(--border-light); }
|
|
.pinned-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); padding:28px; cursor:pointer; transition:all 0.3s; box-shadow:0 1px 4px var(--shadow); display:flex; gap:24px; align-items:center; }
|
|
.pinned-card:hover { box-shadow:0 4px 20px rgba(44,36,22,0.1); border-color:var(--cinnabar-light); }
|
|
.pinned-cover { width:120px; height:120px; border-radius:var(--radius); flex-shrink:0; background:linear-gradient(135deg, #e8dccf 0%, #d5c4aa 100%); display:flex; align-items:center; justify-content:center; font-size:48px; }
|
|
.pinned-info h3 { font-size:20px; letter-spacing:0.06em; margin-bottom:8px; }
|
|
.pinned-info .pinned-excerpt { font-size:13px; color:var(--ink-light); line-height:1.9; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
|
|
.pinned-info { flex: 1; } .pinned-info .pinned-meta { margin-top:10px; font-size:12px; color:var(--ink-lighter); font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
|
|
|
|
.section-header { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:24px; }
|
|
.section-title { font-size:17px; letter-spacing:0.08em; font-weight:600; }
|
|
.papers-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:24px; }
|
|
.paper-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; cursor:pointer; transition:all 0.3s; box-shadow:0 1px 4px var(--shadow); display:flex; flex-direction:column; }
|
|
.paper-card:hover { transform:translateY(-2px); box-shadow:0 4px 16px rgba(44,36,22,0.1); border-color:var(--cinnabar-light); }
|
|
.card-cover { width:100%; height:160px; background:linear-gradient(135deg, #ede4d3 0%, #e0d6c5 100%); display:flex; align-items:center; justify-content:center; font-size:42px; flex-shrink:0; }
|
|
.card-cover.tech { background:linear-gradient(135deg, #dde4e8 0%, #c8d4db 100%); }
|
|
.card-body { padding:20px; flex:1; display:flex; flex-direction:column; }
|
|
.card-body .card-author { font-size:12px; color:var(--ink-lighter); letter-spacing:0.08em; margin-bottom:6px; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
|
|
.card-body .card-title { font-size:17px; font-weight:600; letter-spacing:0.04em; margin-bottom:8px; }
|
|
.card-body .card-excerpt { font-size:13px; color:var(--ink-light); line-height:1.9; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; flex:1; }
|
|
.card-body .card-meta { margin-top:14px; font-size:11px; color:var(--ink-lighter); font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; display:flex; justify-content:space-between; align-items:center; }
|
|
|
|
/* 文章列表 */
|
|
.article-list { display:flex; flex-direction:column; gap:0; }
|
|
.article-item { display:flex; justify-content:space-between; align-items:baseline; padding:18px 0; border-bottom:1px solid var(--border-light); cursor:pointer; transition:all 0.25s; }
|
|
.article-item:hover { padding-left:12px; border-bottom-color:var(--cinnabar-light); }
|
|
.article-item .article-title { font-size:16px; letter-spacing:0.05em; flex:1; }
|
|
.article-item .article-meta { font-size:12px; color:var(--ink-lighter); white-space:nowrap; margin-left:24px; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; display:flex; align-items:center; gap:12px; }
|
|
.pagination { display:flex; justify-content:center; gap:12px; margin-top:32px; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; font-size:14px; }
|
|
.pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; background:none; border:1px solid var(--border); color:var(--ink-light); padding:6px 14px; border-radius:var(--radius); cursor:pointer; transition:all 0.2s; text-decoration:none !important; min-width:36px; }
|
|
.pagination .page-numbers:hover { border-color:var(--cinnabar); color:var(--cinnabar); }
|
|
.pagination .page-numbers.current { background:var(--cinnabar); color:#fff; border-color:var(--cinnabar); }
|
|
.pagination .prev, .pagination .next { font-weight:500; }
|
|
|
|
/* 文章详情 */
|
|
.article-full { max-width:680px; margin:0 auto; }
|
|
.article-full .back-link { font-size:13px; color:var(--ink-lighter); text-decoration:none; margin-bottom:32px; display:inline-block; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; cursor:pointer; }
|
|
.article-full .back-link:hover { color:var(--cinnabar); }
|
|
.article-full .article-cover { width:100%; height:240px; border-radius:var(--radius); background:linear-gradient(135deg, #ede4d3 0%, #d5c4aa 100%); display:flex; align-items:center; justify-content:center; font-size:64px; margin-bottom:28px; }
|
|
.article-full h1 { font-size:28px; font-weight:600; letter-spacing:0.08em; margin-bottom:10px; line-height:1.5; }
|
|
.article-full .article-byline { font-size:13px; color:var(--ink-lighter); margin-bottom:36px; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; display:flex; justify-content:space-between; align-items:center; }
|
|
.article-full .article-byline a { color:var(--cinnabar); text-decoration:none; cursor:pointer; }
|
|
.article-full .article-body { font-size:15px; line-height:2.2; }
|
|
.article-full .article-body p { margin-bottom:20px; text-indent:2em; }
|
|
.article-full .article-body pre { background:#f6efe3; padding:16px 20px; border-radius:var(--radius); font-size:13px; line-height:1.8; overflow-x:auto; margin-bottom:20px; font-family:"SF Mono","Fira Code","Cascadia Code",monospace; text-indent:0; border:1px solid var(--border-light); }
|
|
.article-full .article-body code { font-family:"SF Mono","Fira Code","Cascadia Code",monospace; background:#f6efe3; padding:2px 6px; border-radius:3px; font-size:0.9em; }
|
|
|
|
/* 留言板 */
|
|
.comments-section { margin-top:48px; border-top:1px solid var(--border-light); padding-top:32px; }
|
|
.comments-section h3 { font-size:18px; font-weight:600; letter-spacing:0.08em; margin-bottom:20px; }
|
|
|
|
|
|
|
|
|
|
.comment-form { margin-top:24px; display:flex; flex-direction:column; gap:12px; }
|
|
.comment-form textarea { width:100%; padding:14px; border:1px solid var(--border); border-radius:var(--radius); background:var(--white); font-family:inherit; font-size:14px; color:var(--ink); resize:vertical; min-height:80px; }
|
|
.comment-form button { align-self:flex-end; background:var(--cinnabar); color:#fff; border:none; padding:8px 24px; border-radius:20px; cursor:pointer; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; font-size:13px; transition:background 0.2s; }
|
|
.comment-form button:hover { background:#a03a32; }
|
|
|
|
/* 吐槽 */
|
|
.tucao-item { padding:20px 0; border-bottom:1px solid var(--border-light); }
|
|
.tucao-item .tucao-header { display:flex; align-items:center; gap:4px; margin-bottom:6px; }
|
|
.tucao-item .tucao-author { font-weight:600; font-size:14px; }
|
|
.tucao-item .tucao-time { font-size:11px; color:var(--ink-lighter); }
|
|
.tucao-item .tucao-body { font-size:15px; color:var(--ink); line-height:1.8; }
|
|
.tucao-item .tucao-img { margin-top:10px; font-size:40px; }
|
|
.tucao-comments-toggle { display:inline-block; margin-top:8px; color:var(--cinnabar); font-size:12px; cursor:pointer; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
|
|
.tucao-comments { margin-top:12px; padding-left:12px; border-left:2px solid var(--border-light); display:none; }
|
|
.tucao-comments.open { display:block; }
|
|
.tucao-comment { padding:8px 0; font-size:13px; color:var(--ink-light); border-bottom:1px dashed var(--border-light); }
|
|
.tucao-comment .tucao-comment-author { font-weight:600; }
|
|
.tucao-comment-form { display:flex; gap:8px; margin-top:12px; }
|
|
.tucao-comment-form input { flex:1; padding:6px 10px; border:1px solid var(--border); border-radius:var(--radius); font-family:inherit; font-size:13px; }
|
|
.tucao-comment-form button { background:var(--cinnabar); color:#fff; border:none; padding:6px 16px; border-radius:20px; cursor:pointer; font-size:12px; }
|
|
|
|
/* 画廊瀑布流 */
|
|
.gallery-masonry { column-count:3; column-gap:20px; }
|
|
.gallery-masonry .gallery-item { break-inside:avoid; margin-bottom:20px; border-radius:var(--radius); overflow:hidden; cursor:pointer; border:1px solid var(--border-light); background:var(--white); transition:all 0.3s; position:relative; display:block; line-height:0; }
|
|
.gallery-masonry .gallery-item:hover { transform:scale(1.02); box-shadow:0 4px 20px rgba(44,36,22,0.12); border-color:var(--cinnabar-light); }
|
|
.gallery-placeholder { width:100%; display:flex; align-items:center; justify-content:center; font-size:56px; color:#d5ccbb; background:linear-gradient(135deg, #faf7f0 0%, #f0ebe0 100%); }
|
|
.gallery-caption { position:absolute; bottom:0; left:0; right:0; padding:12px 16px; background:linear-gradient(transparent, rgba(0,0,0,0.5)); color:#fff; font-size:12px; opacity:0; transition:opacity 0.3s; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
|
|
.gallery-item:hover .gallery-caption { opacity:1; }
|
|
|
|
/* 图片展示页 */
|
|
.image-set-page { max-width:800px; margin:0 auto; }
|
|
.image-set-page .back-link { font-size:13px; color:var(--ink-lighter); cursor:pointer; margin-bottom:24px; display:inline-block; }
|
|
.image-set-page .image-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px,1fr)); gap:16px; margin-top:20px; }
|
|
.image-set-page .image-thumb { aspect-ratio:1; background:var(--white); border-radius:var(--radius); display:flex; align-items:center; justify-content:center; font-size:64px; cursor:pointer; border:1px solid var(--border-light); transition:all 0.2s; }
|
|
.image-set-page .image-thumb:hover { border-color:var(--cinnabar-light); box-shadow:0 2px 8px var(--shadow); }
|
|
|
|
/* 灯箱 */
|
|
.lightbox { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.85); backdrop-filter:blur(8px); z-index:200; justify-content:center; align-items:center; flex-direction:column; animation:fadeIn 0.3s; }
|
|
.lightbox.active { display:flex; }
|
|
.lightbox-content { background:var(--paper); border-radius:var(--radius-lg); max-width:85vw; max-height:85vh; padding:24px; display:flex; flex-direction:column; align-items:center; box-shadow:0 12px 40px rgba(0,0,0,0.4); animation:scaleIn 0.3s; }
|
|
.lightbox-image { font-size:128px; display:flex; align-items:center; justify-content:center; min-width:240px; min-height:240px; }
|
|
.lightbox-caption { margin-top:12px; font-size:15px; color:var(--ink-light); text-align:center; font-weight:500; }
|
|
.lightbox-close { position:absolute; top:24px; right:36px; font-size:36px; color:#fff; cursor:pointer; opacity:0.8; transition:opacity 0.2s; }
|
|
.lightbox-close:hover { opacity:1; }
|
|
.lightbox-nav { position:absolute; top:50%; transform:translateY(-50%); font-size:48px; color:#fff; cursor:pointer; user-select:none; padding:24px; opacity:0.7; transition:opacity 0.2s; }
|
|
.lightbox-nav:hover { opacity:1; }
|
|
.lightbox-prev { left:16px; }
|
|
.lightbox-next { right:16px; }
|
|
.lightbox-counter { color:#fff; margin-top:10px; font-size:14px; }
|
|
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
|
|
@keyframes scaleIn { from{transform:scale(0.9)} to{transform:scale(1)} }
|
|
|
|
/* 个人资料 */
|
|
.profile-header { display:flex; gap:32px; align-items:flex-start; padding-bottom:32px; border-bottom:1px solid var(--border-light); margin-bottom:32px; }
|
|
.profile-header .avatar { width:100px; height:100px; border-radius:50%; background:linear-gradient(135deg, #e8dccf 0%, #d5c4aa 100%); display:flex; align-items:center; justify-content:center; font-size:40px; flex-shrink:0; border:2px solid var(--border); box-shadow:0 2px 12px var(--shadow); }
|
|
.profile-info h2 { font-size:24px; font-weight:600; letter-spacing:0.08em; margin-bottom:4px; }
|
|
.profile-info .handle { font-size:13px; color:var(--ink-lighter); margin-bottom:8px; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
|
|
.profile-info .bio { font-size:14px; color:var(--ink-light); line-height:1.9; max-width:500px; }
|
|
.profile-stats { display:flex; gap:32px; margin-top:16px; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
|
|
.profile-stats .stat { text-align:center; }
|
|
.profile-stats .stat-number { font-size:20px; font-weight:700; color:var(--cinnabar); font-family:"Noto Serif SC","Source Han Serif SC",serif; }
|
|
.profile-stats .stat-label { font-size:11px; color:var(--ink-lighter); letter-spacing:0.1em; }
|
|
.profile-tabs { display:flex; gap:24px; margin-bottom:24px; font-size:14px; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
|
|
.profile-tabs span { cursor:pointer; color:var(--ink-lighter); letter-spacing:0.08em; padding-bottom:6px; border-bottom:2px solid transparent; transition:all 0.25s; }
|
|
.profile-tabs span:hover, .profile-tabs span.active { color:var(--cinnabar); border-bottom-color:var(--cinnabar); }
|
|
|
|
.footer { text-align:center; padding:24px 40px; border-top:1px solid var(--border-light); font-size:12px; color:var(--ink-lighter); letter-spacing:0.1em; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
|
|
.footer .motto { margin-bottom:6px; color:var(--ink-light); font-family:"Noto Serif SC","Source Han Serif SC",serif; }
|
|
|
|
@media (max-width:720px){
|
|
.main-content{padding:24px;}
|
|
.top-bar{padding:0 24px; flex-direction:column; gap:8px; height:auto; padding-top:12px; padding-bottom:12px;}
|
|
:root{--topbar-height:100px;}
|
|
.nav-links{gap:16px;}
|
|
.profile-header{flex-direction:column; align-items:center; text-align:center;}
|
|
.profile-stats{justify-content:center;}
|
|
.gallery-masonry{column-count:2;}
|
|
.pinned-card{flex-direction:column; align-items:flex-start;}
|
|
.pinned-cover{width:100%; height:160px;}
|
|
}
|
|
@media (max-width:480px){
|
|
.gallery-masonry{column-count:1;}
|
|
.papers-grid{grid-template-columns:1fr;}
|
|
}
|
|
|
|
/* WordPress avatar styling (not in original DeepSeek UI) */
|
|
.pinned-avatar, .card-avatar, .tucao-avatar {
|
|
width: 16px !important;
|
|
height: 16px !important;
|
|
border-radius: 50% !important;
|
|
vertical-align: middle;
|
|
object-fit: cover;
|
|
}
|
|
.pinned-meta__author, .card-author, .tucao-header {
|
|
display: inline-flex !important; align-items: center !important; gap: 4px !important;
|
|
}
|
|
.pinned-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
.pinned-meta span:last-child { margin-left: auto; }
|
|
width: 100%; height: 100%; object-fit: cover;
|
|
}
|
|
.card-cover { overflow: hidden; }
|
|
|
|
/* WP uses <a> for cards instead of div onclick */
|
|
.pinned-card, .paper-card, .article-item, .gallery-item {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
.logo-area, .logo-area:hover, .logo-area:visited { text-decoration: none !important; }
|
|
|
|
/* WP wrapper — ensure full width in body flex container */
|
|
.site {
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Force full width on all pages */
|
|
body.wp-singular .site,
|
|
body.page-template .site,
|
|
body.archive .site,
|
|
body.home .site,
|
|
body .site { width: 100% !important; }
|
|
.platform { width: 100% !important; max-width: 960px !important; }
|
|
|
|
.article-item { display:flex; justify-content:space-between; align-items:center; padding:18px 0; border-bottom:1px solid var(--border-light); cursor:pointer; transition:all 0.25s; text-decoration:none; color:inherit; }
|
|
.article-item:hover { padding-left:12px; border-bottom-color:var(--cinnabar-light); }
|
|
.article-item__main { flex:1; min-width:0; }
|
|
.article-title { font-size:16px; letter-spacing:0.05em; display:block; }
|
|
.article-item__author { display:inline-flex; align-items:center; gap:4px; font-size:12px; color:var(--ink-lighter); margin-top:4px; }
|
|
.article-avatar { width:14px !important; height:14px !important; border-radius:50% !important; }
|
|
.article-item__meta { display:flex; flex-direction:column; align-items:flex-end; gap:2px; font-size:12px; color:var(--ink-lighter); white-space:nowrap; margin-left:24px; }
|
|
.article-item__date { font-size:12px; color:var(--ink-lighter); }
|
|
.article-item__views { font-size:11px; color:var(--ink-lighter); }
|
|
|
|
|
|
|
|
EOF
|
|
docker exec agent-blog-theme-wordpress-1 apache2ctl graceful
|
|
echo "done"
|
|
|
|
/* Gallery image fix */
|
|
.gallery-img { display:block !important; width:100% !important; height:auto !important; }
|
|
.gallery-empty { display:flex; align-items:center; justify-content:center; min-height:160px; color:var(--ink-lighter); background:linear-gradient(135deg, #faf7f0 0%, #f0ebe0 100%); }
|
|
|
|
/* Card & pinned cover image constraints */
|
|
.card-cover img, .pinned-cover img, .article-cover img, .gallery-img {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
object-fit: cover !important;
|
|
}
|
|
.card-cover { overflow: hidden; aspect-ratio: 16/9; }
|
|
.pinned-cover { overflow: hidden; width: 120px; height: 120px; }
|
|
.article-cover { overflow: hidden; height: 240px; }
|
|
|
|
/* Thumbnail fix — regenerate without black bars */
|
|
|
|
.article-item__thumb {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
margin-right: 16px;
|
|
}
|
|
.article-item__thumb img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
.article-item {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.avatar, .pinned-avatar, .card-avatar, .tucao-avatar, .article-avatar, .avatar-sm {
|
|
object-fit: cover !important;
|
|
border-radius: 50% !important;
|
|
}
|
|
|
|
.avatar, .pinned-avatar, .card-avatar, .tucao-avatar, .article-avatar, .avatar-sm {
|
|
object-position: center 20%;
|
|
}
|
|
|
|
.avatar-16, .card-avatar, .tucao-avatar, .article-avatar {
|
|
width: 16px !important;
|
|
height: 16px !important;
|
|
}
|
|
.avatar-18, .pinned-avatar {
|
|
width: 18px !important;
|
|
height: 18px !important;
|
|
}
|
|
.avatar-14, .article-avatar {
|
|
width: 14px !important;
|
|
height: 14px !important;
|
|
}
|
|
.avatar-sm {
|
|
width: 16px !important;
|
|
height: 16px !important;
|
|
}
|
|
|
|
.single-post__meta img,
|
|
.article-byline img {
|
|
width: 22px !important;
|
|
height: 22px !important;
|
|
border-radius: 50% !important;
|
|
object-fit: cover !important;
|
|
vertical-align: middle;
|
|
}
|
|
.article-byline span {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.author-card__avatar {
|
|
width: 56px !important;
|
|
height: 56px !important;
|
|
border-radius: 50% !important;
|
|
object-fit: cover !important;
|
|
}
|
|
|
|
.photo-detail { max-width: 800px; margin: 0 auto; }
|
|
.photo-detail__image { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
|
|
.photo-detail__image img { width: 100%; height: auto; display: block; }
|
|
.photo-detail__body { font-size: 1.1rem; line-height: 1.8; color: var(--ink-light); margin-bottom: 24px; font-style: italic; text-align: center; }
|
|
.photo-detail__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-lighter); padding-top: 16px; border-top: 1px solid var(--border-light); }
|
|
.photo-detail__meta img { width: 18px !important; height: 18px !important; border-radius: 50% !important; object-fit: cover !important; }
|
|
.photo-detail__nav { display: flex; justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-light); font-size: 14px; }
|
|
.photo-detail__nav a { color: var(--ink-lighter); text-decoration: none; }
|
|
.photo-detail__nav a:hover { color: var(--cinnabar); }
|
|
|
|
.photo-detail .back-link {
|
|
font-size: 13px;
|
|
color: var(--ink-lighter);
|
|
text-decoration: none;
|
|
margin-bottom: 24px;
|
|
display: inline-block;
|
|
font-family: "Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
|
|
}
|
|
.photo-detail .back-link:hover { color: var(--cinnabar); }
|
|
|
|
.photo-detail__title { font-size: 24px; font-weight: 600; text-align: center; margin-bottom: 10px; }
|
|
.photo-detail__meta { justify-content: center; }
|
|
|
|
.photo-detail__meta span:first-child {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
.photo-detail__meta img {
|
|
width: 18px !important;
|
|
height: 18px !important;
|
|
border-radius: 50% !important;
|
|
object-fit: cover !important;
|
|
}
|
|
|
|
.photo-detail__divider {
|
|
width: 60px;
|
|
margin: 24px auto;
|
|
border-top: 2px dashed var(--border);
|
|
}
|
|
.photo-detail__meta { border-top: none; padding-top: 0; }
|
|
|
|
.photo-detail__body img {
|
|
display: block;
|
|
width: 100%;
|
|
height: auto;
|
|
margin: 20px 0;
|
|
border-radius: var(--radius);
|
|
}
|
|
.photo-detail__body p {
|
|
margin: 16px 0;
|
|
text-align: center;
|
|
font-style: italic;
|
|
color: var(--ink-light);
|
|
}
|
|
|
|
/* 照片灯箱 */
|
|
.photo-lightbox {
|
|
display: none;
|
|
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
|
|
background: #000;
|
|
z-index: 9999;
|
|
justify-content: center; align-items: center;
|
|
}
|
|
.photo-lightbox.active { display: flex; }
|
|
.photo-lightbox__content { max-width: 90vw; max-height: 90vh; }
|
|
.photo-lightbox__content img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
|
|
.photo-lightbox__close { position: absolute; top: 24px; right: 36px; font-size: 42px; color: #fff; cursor: pointer; opacity: 0.8; z-index: 2; }
|
|
.photo-lightbox__close:hover { opacity: 1; }
|
|
.photo-lightbox__counter { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; opacity: 0.7; z-index: 2; }
|
|
.photo-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 56px; color: #fff; cursor: pointer; user-select: none; padding: 24px; opacity: 0.7; z-index: 2; }
|
|
.photo-lightbox__nav:hover { opacity: 1; }
|
|
.photo-lightbox__prev { left: 16px; }
|
|
.photo-lightbox__next { right: 16px; }
|
|
|
|
/* 图片可点击提示 */
|
|
.photo-detail__image { cursor: zoom-in; }
|
|
.photo-detail__body img { cursor: zoom-in; }
|
|
|
|
|
|
.photo-lightbox__postnav {
|
|
position: absolute;
|
|
bottom: 18px;
|
|
left: 0; right: 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0 40px;
|
|
z-index: 2;
|
|
}
|
|
.photo-lightbox__postnav a {
|
|
color: rgba(255,255,255,0.6);
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
}
|
|
.photo-lightbox__postnav a:hover { color: #fff; }
|
|
.photo-lightbox__postnav span { color: transparent; }
|
|
.photo-lightbox__counter { bottom: 60px; }
|
|
|
|
.photo-lightbox__brand {
|
|
position: absolute;
|
|
top: 24px;
|
|
left: 36px;
|
|
color: rgba(255,255,255,0.25);
|
|
font-size: 16px;
|
|
letter-spacing: 0.1em;
|
|
z-index: 2;
|
|
font-family: "Noto Serif SC", "STSong", "Songti SC", serif;
|
|
}
|
|
|
|
.photo-lightbox__info {
|
|
text-align: center;
|
|
margin-bottom: 16px;
|
|
}
|
|
.photo-lightbox__photo-title {
|
|
color: rgba(255,255,255,0.5);
|
|
font-size: 15px;
|
|
font-weight: 400;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
|
|
.photo-lightbox__content img { border-radius: 6px; }
|
|
|
|
.tucao-login-hint { font-size: 12px; color: var(--ink-lighter); margin-top: 12px; }
|
|
.tucao-login-hint a { color: var(--cinnabar); }
|
|
|
|
.tucao-comment { display:flex; gap:8px; align-items:flex-start; padding:8px 0; }
|
|
.tucao-comment-avatar { width:22px !important; height:22px !important; border-radius:50% !important; object-fit:cover !important; flex-shrink:0; }
|
|
.tucao-comment-time { font-size:11px; color:var(--ink-lighter); }
|
|
.tucao-comment-text { font-size:13px; color:var(--ink-light); line-height:1.6; margin-top:2px; }
|
|
|
|
.tucao-comment-body { flex:1; }
|
|
.tucao-comment-author { font-size:13px; font-weight:600; }
|
|
.tucao-comment-avatar { border-radius:50% !important; }
|
|
|
|
.tucao-comment { align-items: center; }
|
|
.tucao-comment-avatar { position: relative; top: 3px; }
|
|
|
|
.tucao-comment-body { line-height: 16px; }
|
|
.tucao-comment-avatar { top: 0 !important; width:16px !important; height:16px !important; }
|
|
|
|
.tucao-comment { padding:6px 0; }
|
|
.tucao-comment-meta { display:flex; align-items:center; gap:4px; margin-bottom:2px; }
|
|
.tucao-comment-meta > img { width:16px !important; height:16px !important; border-radius:50% !important; object-fit:cover !important; flex-shrink:0; }
|
|
|
|
.tucao-comment-meta { display:flex !important; align-items:center !important; gap:4px; margin-bottom:2px; }
|
|
.tucao-comment-time { font-size:11px; color:var(--ink-lighter); }
|
|
|
|
.tucao-comment-author { font-size:13px; font-weight:600; }
|
|
.tucao-comment-time { font-size:11px; color:var(--ink-lighter); }
|
|
.tucao-comment-text { font-size:13px; color:var(--ink-light); line-height:1.6; margin-left:20px; }
|
|
.tucao-comment { padding:6px 0; border-bottom:1px dashed var(--border-light); display:block !important; }
|
|
.tucao-comment:last-child { border-bottom:none; }
|
|
.tucao-comment-meta { display:flex !important; align-items:center !important; gap:4px; margin-bottom:2px; }
|
|
.tucao-comment-meta > img { width:16px !important; height:16px !important; border-radius:50% !important; object-fit:cover !important; flex-shrink:0; }
|
|
.tucao-comment-author { font-size:13px; font-weight:600; }
|
|
.tucao-comment-time { font-size:11px; color:var(--ink-lighter); }
|
|
.tucao-comment-text { display:block; font-size:13px; color:var(--ink-light); line-height:1.6; margin-left:20px; }
|
|
|
|
.tucao-reply-to { font-size:11px; color:var(--cinnabar); margin:0 2px; }
|
|
|
|
/* 用户菜单 */
|
|
.user-menu { position:relative; }
|
|
.user-menu-trigger { display:inline-flex; align-items:center; gap:6px; background:none; border:none; cursor:pointer; font-family:inherit; padding:0; }
|
|
.user-menu-avatar { width:24px !important; height:24px !important; border-radius:50% !important; object-fit:cover !important; }
|
|
.user-menu-name { font-size:14px; color:var(--ink-light); }
|
|
.user-menu-arrow { font-size:10px; color:var(--ink-lighter); }
|
|
.user-menu-dropdown { display:none; position:absolute; top:100%; right:0; margin-top:8px; background:var(--white); border:1px solid var(--border); border-radius:var(--radius); box-shadow:0 2px 12px var(--shadow); min-width:120px; z-index:200; }
|
|
.user-menu.open .user-menu-dropdown { display:block; }
|
|
.user-menu-dropdown a { display:block; padding:8px 16px; font-size:13px; color:var(--ink-light); text-decoration:none !important; white-space:nowrap; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
|
|
.user-menu-dropdown a:hover { background:var(--paper-warm); color:var(--cinnabar); }
|
|
|
|
/* 评论按钮靠右 */
|
|
.comment-form .form-submit { text-align:right; }
|
|
.comment-form .submit { background:var(--cinnabar) !important; color:#fff !important; border:none !important; padding:8px 24px !important; border-radius:20px !important; cursor:pointer !important; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif !important; font-size:13px !important; }
|
|
.comment-form .submit:hover { background:#a03a32 !important; }
|
|
|
|
.user-menu-avatar { width:18px !important; height:18px !important; border-radius:50% !important; object-fit:cover !important; }
|
|
.user-menu-trigger { display:inline-flex; align-items:center; gap:4px; background:none; border:none; cursor:pointer; padding:0; color:var(--ink-light); font-size:13px; }
|
|
.user-menu-trigger:hover { color:var(--cinnabar); }
|
|
.user-menu-dropdown { right:0; left:auto; text-align:left; }
|
|
|
|
.user-menu-dropdown { right:0 !important; left:auto !important; z-index:9999 !important; }
|
|
.user-menu .user-menu-dropdown { position:absolute !important; right:0 !important; left:auto !important; top:100% !important; }
|
|
|
|
.top-bar nav { margin-left:auto; }
|
|
.user-menu { margin-left:28px; }
|
|
|
|
.user-menu-trigger { line-height:22px; }
|
|
|
|
.user-menu-trigger { vertical-align:middle; display:inline-flex !important; align-items:center !important; }
|
|
.user-menu { display:inline-flex; align-items:center; }
|
|
|
|
.login-modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:10000; justify-content:center; align-items:center; }
|
|
.login-modal.active { display:flex; }
|
|
.login-modal__box { background:var(--paper); border-radius:var(--radius-lg); padding:32px 40px; text-align:center; box-shadow:0 8px 30px rgba(0,0,0,0.15); max-width:400px; }
|
|
.login-modal__text { font-size:16px; color:var(--ink); margin-bottom:24px; font-family:"Noto Serif SC","STSong",serif; }
|
|
.login-modal__actions { display:flex; gap:12px; justify-content:center; }
|
|
.login-modal__btn { padding:8px 24px; border-radius:20px; font-size:13px; cursor:pointer; border:none; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; }
|
|
.login-modal__btn--cancel { background:var(--border); color:var(--ink-light); }
|
|
.login-modal__btn--go { background:var(--cinnabar); color:#fff; }
|
|
.login-modal__btn--go:hover { background:#a03a32; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 评论列表 */
|
|
.comment-item { padding:10px 0; border-bottom:1px dashed var(--border-light); list-style:none; }
|
|
.comment-item:last-child { border-bottom:none; }
|
|
.comment-item__meta { display:flex; align-items:center; gap:6px; margin-bottom:2px; }
|
|
.comment-avatar { width:18px !important; height:18px !important; border-radius:50% !important; object-fit:cover !important; }
|
|
.comment-item__author { font-size:13px; font-weight:600; }
|
|
.comment-item__replyto { font-size:11px; color:var(--cinnabar); }
|
|
.comment-item__time { font-size:11px; color:var(--ink-lighter); }
|
|
.comment-item__text { font-size:14px; color:var(--ink-light); line-height:1.7; }
|
|
.comment-item__reply { font-size:12px; }
|
|
.comment-item__reply a { color:var(--cinnabar); text-decoration:none; }
|
|
.comment-item--reply { margin-left:18px; padding:6px 0 6px 10px; border-bottom:1px dashed var(--border-light); border-left:1px dashed var(--border-light); }
|
|
.comment-item--reply:last-child { border-bottom:none; }
|