/*
Theme Name: V3
Theme URL: https://dujun.io/
Description: 复刻自 dujun.io 的极简博客主题
Version: 1.0
Author: V3
Author URL: 
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

a {
    color: #666;
    text-decoration: none;
}

a:hover {
    color: #333;
    text-decoration: underline;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    padding: 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 -1px 0;
    line-height: 1;
    padding-bottom: 15px;
}

.site-title a {
    color: #333;
}

.site-title a:hover {
    text-decoration: none;
    color: #000;
}

.site-nav {
    font-size: 16px;
    margin-bottom: -1px;
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.site-nav a {
    margin-left: 30px;
    color: #999;
    display: inline-block;
    padding-bottom: 8px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover {
    color: #333;
    border-bottom-color: #333;
}

.nav-merge {
    position: relative;
    display: inline-block;
    margin-left: 30px;
}

.nav-merge-trigger {
    color: #999;
    padding-bottom: 8px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    display: inline-block;
}

.nav-merge:hover .nav-merge-trigger {
    color: #333;
    border-bottom-color: #333;
}

.nav-merge-arrow {
    font-size: 12px;
    margin-left: 2px;
}

.nav-merge-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-width: 140px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.15s ease;
    z-index: 100;
}

.nav-merge:hover .nav-merge-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-merge-dropdown a {
    display: block;
    margin: 0;
    padding: 8px 16px;
    border-bottom: none;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.nav-merge-dropdown a:hover {
    color: #222;
    background: #f9f9f9;
    border-bottom: none;
}

.main-wrapper {
    display: flex;
    gap: 0;
    align-items: flex-start;
}

.content-area {
    flex: 1;
    min-width: 0;
    padding-right: 30px;
}

.widget-area {
    width: 250px;
    flex-shrink: 0;
    border-left: 1px solid #eee;
    padding-left: 30px;
    margin-top: -30px;
    padding-top: 30px;
}

.post-item {
    margin-bottom: 30px;
    padding-bottom: 5px;
    display: block;
}

.post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.post-content-wrap {
    flex: 1;
    min-width: 0;
}

.post-thumb-col {
    flex-shrink: 0;
    width: 200px;
}

.post-thumb {
    width: 200px;
    height: 140px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px;
}

.post-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-thumb a:hover img {
    transform: scale(1.05);
}

.post-header {
    margin-bottom: 10px;
}

.post-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
}

.post-title a {
    color: #222;
    text-decoration: none;
}

.post-title a:hover {
    color: #000;
}

.post-excerpt {
    color: #444;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 8px;
}

.post-excerpt p {
    margin-bottom: 8px;
}

.post-excerpt p:last-child {
    margin-bottom: 0;
}

.post-meta {
    font-size: 14px;
    color: #999;
}

.post-meta a {
    color: #999;
}

.post-meta a:hover {
    color: #666;
}

.post-meta .sep {
    margin: 0 8px;
    color: #ddd;
}

.post {
    margin-bottom: 30px;
}

.post .post-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.post .post-title {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 10px;
}

.post .post-title::before {
    display: none;
}

.post .post-meta {
    padding-left: 0;
}

.post-content {
    color: #444;
    font-size: 17px;
    line-height: 1.85;
}

.post-content p {
    margin-bottom: 18px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 32px 0 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #2c3e50;
}

.post-content h1 {
    font-size: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaecef;
}

.post-content h2 {
    font-size: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaecef;
}

.post-content h3 {
    font-size: 18px;
}

.post-content h4 {
    font-size: 16px;
}

.post-content h5 {
    font-size: 15px;
}

.post-content h6 {
    font-size: 14px;
    color: #666;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.post-content blockquote {
    border-left: 4px solid #42b983;
    padding: 12px 16px 12px 20px;
    margin: 20px 0;
    color: #555;
    background: #f8f9fa;
    border-radius: 0 6px 6px 0;
}

.post-content blockquote p {
    margin-bottom: 10px;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 13.5px;
    font-family: "JetBrains Mono", Consolas, Monaco, "Courier New", monospace;
    color: #e96900;
}

.code-block-wrapper {
    position: relative;
    margin: 22px 0;
    border-radius: 8px;
    overflow: hidden;
}

.post-content pre {
    position: relative;
    background: #2d2d2d;
    padding: 50px 16px 16px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #ccc;
    font-family: "JetBrains Mono", Consolas, Monaco, "Courier New", monospace;
    white-space: pre-wrap;
    word-break: break-all;
    word-wrap: break-word;
}

.code-lang {
    position: absolute;
    top: 12px;
    left: 20px;
    font-size: 12px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    pointer-events: none;
}

.code-expand-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(to top, #252525 0%, #2d2d2dcc 70%, transparent 100%);
    color: #aaa;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 3;
}

.code-expand-btn:hover {
    color: #fff;
}

.code-expand-btn svg {
    transition: transform 0.2s;
}

.post-content pre:not(.line-numbers) {
    padding-top: 50px;
}

.post-content pre code.token.comment,
.post-content pre code.token.prolog,
.post-content pre code.token.doctype,
.post-content pre code.token.cdata {
    color: #999;
}

.post-content pre code.token.punctuation {
    color: #ccc;
}

.post-content pre code.token.property,
.post-content pre code.token.tag,
.post-content pre code.token.boolean,
.post-content pre code.token.number,
.post-content pre code.token.constant,
.post-content pre code.token.symbol,
.post-content pre code.token.deleted {
    color: #f08d49;
}

.post-content pre code.token.selector,
.post-content pre code.token.attr-name,
.post-content pre code.token.string,
.post-content pre code.token.char,
.post-content pre code.token.builtin,
.post-content pre code.token.inserted {
    color: #b5bd68;
}

.post-content pre code.token.operator,
.post-content pre code.token.entity,
.post-content pre code.token.url,
.language-css .post-content pre code.token.string,
.style .post-content pre code.token.string {
    color: #70c0b1;
}

.post-content pre code.token.atrule,
.post-content pre code.token.attr-value,
.post-content pre code.token.keyword {
    color: #cc99cc;
}

.post-content pre code.token.function {
    color: #6699cc;
}

.post-content pre code.token.class-name {
    color: #f0c674;
}

.post-content pre code.token.namespace {
    color: #f0c674;
}

.post-content pre code.token.important,
.post-content pre code.token.atrule {
    color: #cc99cc;
}

.post-content pre code.token.regex,
.post-content pre code.token.important,
.post-content pre code.token.variable {
    color: #f2777a;
}

.post-content pre code.token.important,
.post-content pre code.token.bold {
    font-weight: bold;
}

.post-content pre code.token.italic {
    font-style: italic;
}

.post-content ul,
.post-content ol {
    margin: 18px 0;
    padding-left: 26px;
}

.post-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.post-content li > ul,
.post-content li > ol {
    margin: 8px 0;
}

.post-content ul li::marker {
    color: #999;
}

.post-content ol li::marker {
    color: #999;
    font-weight: 500;
}

.post-content a {
    color: #42b983;
    text-decoration: none;
    border-bottom: 1px solid #42b98380;
    transition: color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.post-content a[target="_blank"]:not(.button):not(.button-secondary):not(.tabs-nav a):not(.tag-list a)::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2342b983' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    transition: background-image 0.2s;
    vertical-align: -0.15em;
}

.post-content a[href^="mailto:"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2342b983' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

.post-content a:hover {
    color: #35495e;
    border-color: #35495e;
}

.post-content a[target="_blank"]:not(.button):not(.button-secondary):not(.tabs-nav a):not(.tag-list a):hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335495e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
}

.post-content a[href^="mailto:"]:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2335495e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
}

.link-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.link-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.link-modal {
    background: #fff;
    border-radius: 14px;
    width: 280px;
    max-width: 85%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.2s;
}

.link-modal-overlay.show .link-modal {
    transform: scale(1);
}

.link-modal-header {
    text-align: center;
    padding: 22px 20px 18px;
}

.link-modal-domain {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.link-modal-url {
    font-size: 15px;
    color: #666;
    word-break: break-all;
    line-height: 1.5;
}

.link-modal-actions {
    display: flex;
    border-top: 1px solid #f5f5f5;
}

.link-modal-btn {
    flex: 1;
    padding: 15px 14px;
    text-align: center;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    font-weight: 400;
}

.link-modal-btn.cancel {
    color: #666;
    border-right: 1px solid #f5f5f5;
}

.link-modal-btn.confirm {
    color: #3b82f6;
}

.link-modal-btn:hover {
    background: #f8f9fa;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.post-content th,
.post-content td {
    border: 1px solid #eaecef;
    padding: 10px 14px;
    text-align: left;
}

.post-content th {
    background: #f7f8fa;
    font-weight: 600;
    color: #2c3e50;
}

.post-content tr:nth-child(even) td {
    background: #fafbfc;
}

.post-content tr:hover td {
    background: #f0f7ff;
}

.post-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 35px 0;
}

.post-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.post-content em {
    color: #555;
}

.post-content del {
    color: #999;
}

.post-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #999;
}

.post-footer a {
    color: #999;
}

.post-footer a:hover {
    color: #666;
}

.post-tags {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.post-tags::before {
    content: '标签：';
    color: #b0b0b0;
    font-size: 14px;
}

.post-tags a {
    display: inline-block;
    padding: 3px 12px;
    background: #f5f5f5;
    color: #666 !important;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 4px;
    text-decoration: none !important;
    margin-right: 0;
    transition: all 0.2s;
    font-weight: normal;
}

.post-tags a:hover {
    background: #e0e0e0;
    color: #333 !important;
}

.post-date-period {
    font-size: 15px;
    color: #555;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.post-nav {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.post-nav a {
    color: #666;
}

.post-nav a:hover {
    color: #333;
}

.post-nav .prev,
.post-nav .next {
    flex: 1;
}

.post-nav .next {
    text-align: right;
}

.pagination {
    margin-top: 30px;
    padding-top: 20px;
    font-size: 14px;
    text-align: center;
}

.page-navigator {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.page-navigator li {
    display: inline-block;
    margin: 0 3px;
    vertical-align: middle;
}

.page-navigator a {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 38px;
    padding: 0 10px;
    color: #555;
    border: 1px solid #ddd;
    text-decoration: none;
    vertical-align: middle;
}

.page-navigator span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 38px;
    padding: 0 10px;
    color: #555;
    vertical-align: middle;
}

.page-navigator a:hover {
    color: #333;
    border-color: #999;
    text-decoration: none;
}

.page-navigator .current a,
.page-navigator .current span {
    color: #222;
    font-weight: normal;
    border: 1px solid #ddd;
    border-bottom: 2px solid #222;
}

.widget {
    margin-bottom: 20px;
    font-size: 14px;
}

.widget-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 6px;
}

.widget-title-icon {
    flex-shrink: 0;
}

.widget ul {
    list-style: none;
    font-size: 14px;
}

.widget ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.widget ul li a {
    color: #666;
    transition: color 0.15s ease;
}

.widget-area a {
    text-decoration: none;
}

.widget-area a:hover {
    text-decoration: none;
}

.widget ul li a:hover {
    color: #222;
}

.page-links {
    margin-bottom: 20px;
    font-size: 14px;
}

.page-links a {
    color: #666;
    margin-right: 16px;
}

.page-links a:hover {
    color: #333;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 12px;
    font-size: 14px;
}

.cat-grid a {
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.cat-grid a:hover {
    color: #222;
}

.tag-cloud {
    font-size: 13px;
    line-height: 2;
}

.tag-cloud a {
    display: inline-block;
    color: #666;
    margin-right: 8px;
    margin-bottom: 4px;
    padding: 2px 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.tag-cloud a:hover {
    color: #222;
    border-color: #ccc;
}

.tag-cloud a.tag-active {
    background: #fff3cd;
    border-color: #f5d742;
    color: #856404;
    font-weight: 500;
}

.widget-custom-content {
    font-size: 14px;
    color: #333;
    line-height: 1.7;
    word-wrap: break-word;
}

.widget-custom-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

.widget-custom-content a {
    color: #666;
    transition: color 0.15s ease;
}

.widget-custom-content a:hover {
    color: #222;
}

.archive-years {
    font-size: 14px;
}

.archive-years a {
    color: #666;
    margin-right: 10px;
    display: inline-block;
    transition: color 0.15s ease;
}

.archive-years a:hover {
    color: #222;
}

.search-box {
    position: relative;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 1px solid #eee;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #fafafa;
    color: #666;
}

.search-box input[type="text"]:focus {
    border-color: #999;
    background: #fff;
    color: #222;
}

.search-box input[type="text"]:focus + .search-btn svg,
.search-box:has(input:focus) .search-btn svg {
    stroke: #222;
}

.search-box .search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box .search-btn:hover svg {
    stroke: #666;
}

.recent-comments li {
    margin-bottom: 12px;
}

.recent-comments li:last-child {
    margin-bottom: 0;
}

.recent-comments .rc-content a {
    text-decoration: none;
}

.recent-comments .rc-content a:hover .rc-text,
.recent-comments .rc-content a:hover .rc-author {
    color: #222;
}

.recent-comments .rc-author {
    color: #666;
    font-size: 14px;
    display: inline;
    transition: color 0.15s ease;
}

.recent-comments .rc-text {
    color: #333;
    font-size: 14px;
    display: inline;
    line-height: 1.6;
    transition: color 0.15s ease;
}

.recent-comments .rc-post {
    margin-top: 6px;
    font-size: 14px;
}

.recent-comments .rc-post .rc-arrow {
    color: #999;
    margin-right: 4px;
}

.recent-comments .rc-post a {
    color: #666;
    transition: color 0.15s ease;
}

.recent-comments .rc-post a:hover {
    color: #222;
}

.rc-total {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: left;
    font-size: 15px;
    line-height: 1.8;
    color: #999;
}

.site-footer a {
    color: #999;
    text-decoration: none;
    margin: 0 3px;
}

.site-footer a:hover {
    color: #666;
}

.site-footer p {
    margin-bottom: 5px;
    text-align: left;
}

.site-footer p:last-child {
    margin-bottom: 0;
}

.comments {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.comments-title {
    font-size: 15px;
    font-weight: normal;
    margin-bottom: 15px;
    margin-top: 10px;
    color: #555;
    letter-spacing: 0.5px;
}

.comments-separator {
    display: none;
}

.comment-list {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-content-inner {
    display: flex;
    gap: 14px;
}

.comment-avatar {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 0;
    background: #f5f5f5;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.comment-author-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment-author {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.comment-date {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

.comment-reply {
    flex-shrink: 0;
}

.comment-reply a {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-reply a:hover {
    color: #666;
}

.comment-content {
    color: #555;
    font-size: 15px;
    line-height: 1.7;
    word-break: break-word;
}

.comment-content p {
    margin-bottom: 0;
}

.comment-children {
    margin-left: 56px;
    list-style: none;
    margin-top: 15px;
    padding-left: 0;
    padding-top: 15px;
    border-top: 1px dashed #e5e5e5;
}

.comment-children .comment-item {
    padding: 15px 0;
    border-bottom: 1px dashed #e5e5e5;
    border-left: none;
    padding-left: 0;
    position: relative;
}

.comment-children .comment-item:last-child {
    border-bottom: none;
}

.comment-at {
    color: #3b82f6;
    font-weight: 500;
    margin-right: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-at:hover {
    color: #2563eb;
    text-decoration: underline;
}

.at-user-dropdown {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    min-width: 120px;
}

.at-user-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.15s;
}

.at-user-item:hover,
.at-user-item.active {
    background: #f0f7ff;
    color: #3b82f6;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #333;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 22px;
    line-height: 1;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #6366f1;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.svg-wave {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath fill='none' stroke='%233b82f6' d='M0 3.5c5 0 5-3 10-3s5 3 10 3 5-3 10-3 5 3 10 3'/%3E%3C/svg%3E") repeat-x 0 100%;
    background-size: 20px auto;
    animation: waveMove 1s infinite linear;
    padding-bottom: 3px;
}

@keyframes waveMove {
    from { background-position: 0 100%; }
    to   { background-position: -20px 100%; }
}

.comment-children .comment-avatar {
    width: 36px;
    height: 36px;
}

.comment-children .comment-content-inner {
    gap: 12px;
}

.comment-children .comment-author {
    font-size: 13px;
}

.comment-children .comment-date {
    font-size: 12px;
}

.comment-form {
    margin-top: 25px;
}

.comment-form-row {
    display: flex;
    gap: 20px;
}

.comment-form-left {
    flex: 1;
}

.comment-form-right {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #eee;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.comment-form-left textarea {
    margin: 0;
    height: 156px;
    resize: none;
}

.comment-form-right input {
    margin: 0;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #ddd;
}

.comment-form textarea {
    height: 197px;
    resize: none;
}

.comment-form .submit {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    text-align: center;
    transition: background 0.2s;
    margin: 0;
}

.comment-form .submit:disabled {
    background: transparent;
    color: transparent;
    border: 2px dashed #ddd;
    cursor: not-allowed;
}

.comment-form .submit:not(:disabled):hover {
    background: #444;
}

.reply-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 15px;
    margin-top: 5px;
    background: #f5f3ff;
    border-left: 3px solid #6366f1;
    border-radius: 2px;
    font-size: 13px;
    color: #666;
}

.reply-status-text strong {
    color: #6366f1;
    font-weight: 600;
}

.cancel-reply {
    color: #6366f1;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.cancel-reply:hover {
    color: #4f46e5;
}

/* ========== 响应式布局 ========== */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
    
    .widget-area {
        width: 220px;
        padding-left: 25px;
    }
    
    .content-area {
        padding-right: 25px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0 0;
        margin-bottom: 20px;
    }
    
    .site-title {
        font-size: 24px;
        padding-bottom: 12px;
        margin-bottom: 0;
    }
    
    .site-nav {
        font-size: 14px;
        margin-bottom: 0;
        flex-wrap: wrap;
        gap: 0;
        margin-top: 12px;
        padding-bottom: 12px;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .site-nav::-webkit-scrollbar {
        display: none;
    }
    
    .site-nav a {
        margin-left: 20px;
        padding-bottom: 6px;
        font-size: 14px;
    }
    
    .site-nav a:first-child {
        margin-left: 0;
    }
    
    .nav-merge {
        margin-left: 20px;
    }
    
    .main-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .content-area {
        padding-right: 0;
        width: 100%;
    }
    
    .widget-area {
        width: 100%;
        border-left: none;
        padding-left: 0;
        margin-top: 0;
        padding-top: 0;
        border-top: 1px solid #eee;
        padding-top: 24px;
        margin-top: 30px;
    }
    
    .widget {
        margin-bottom: 20px;
    }
    
    .post-item {
        margin-bottom: 24px;
    }
    
    .post-body {
        flex-direction: column;
        gap: 14px;
    }
    
    .post-thumb-col {
        width: 100%;
    }
    
    .post-thumb {
        width: 100%;
        height: 180px;
        margin-bottom: 8px;
    }
    
    .post-title {
        font-size: 20px;
    }
    
    .post-excerpt {
        font-size: 14px;
    }
    
    .post-meta {
        font-size: 13px;
    }
    
    .post .post-title {
        font-size: 22px;
    }
    
    .post-content {
        font-size: 16px;
        line-height: 1.8;
    }
    
    .post-content h1 {
        font-size: 20px;
    }
    
    .post-content h2 {
        font-size: 18px;
    }
    
    .post-content h3 {
        font-size: 17px;
    }
    
    .post-content h4 {
        font-size: 16px;
    }
    
    .post-content img {
        margin: 16px auto;
    }
    
    .post-content blockquote {
        padding: 10px 14px 10px 16px;
        margin: 16px 0;
    }
    
    .post-content table {
        font-size: 13px;
        overflow-x: auto;
        display: block;
    }
    
    .post-content th,
    .post-content td {
        padding: 8px 10px;
    }
    
    .post-content ul,
    .post-content ol {
        padding-left: 22px;
    }
    
    .post-content li {
        margin-bottom: 6px;
    }
    
    .post-content code {
        font-size: 12.5px;
        padding: 1px 5px;
    }
    
    .code-block-wrapper {
        margin: 16px 0;
    }
    
    .post-content pre {
        padding: 40px 12px 12px;
        font-size: 12.5px;
    }
    
    .code-lang {
        top: 10px;
        left: 14px;
        font-size: 11px;
    }
    
    .post-footer {
        margin-top: 24px;
        padding-top: 12px;
    }
    
    .post-nav {
        margin-top: 20px;
        padding-top: 12px;
        font-size: 12px;
    }
    
    .pagination {
        margin-top: 24px;
        padding-top: 16px;
    }
    
    .page-navigator a,
    .page-navigator span {
        min-width: 36px;
        height: 36px;
        line-height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .widget-title {
        font-size: 13px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
    
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px 10px;
        font-size: 13px;
    }
    
    .tag-cloud {
        font-size: 12px;
    }
    
    .tag-cloud a {
        margin-right: 6px;
        margin-bottom: 3px;
        padding: 2px 6px;
        font-size: 12px;
    }
    
    .search-box input[type="text"] {
        padding: 7px 32px 7px 10px;
        font-size: 13px;
    }
    
    .recent-comments li {
        margin-bottom: 10px;
    }
    
    .recent-comments .rc-author,
    .recent-comments .rc-text {
        font-size: 13px;
    }
    
    .comments {
        margin-top: 30px;
        padding-top: 16px;
    }
    
    .comments-title {
        font-size: 14px;
        margin-bottom: 12px;
        margin-top: 8px;
    }
    
    .comment-item {
        padding: 16px 0;
    }
    
    .comment-content-inner {
        gap: 12px;
    }
    
    .comment-avatar {
        width: 38px;
        height: 38px;
    }
    
    .comment-author {
        font-size: 14px;
    }
    
    .comment-date {
        font-size: 12px;
    }
    
    .comment-reply a {
        font-size: 12px;
    }
    
    .comment-content {
        font-size: 14px;
        line-height: 1.65;
    }
    
    .comment-children {
        margin-left: 50px;
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .comment-children .comment-item {
        padding: 12px 0;
    }
    
    .comment-children .comment-avatar {
        width: 32px;
        height: 32px;
    }
    
    .comment-children .comment-content-inner {
        gap: 10px;
    }
    
    .comment-children .comment-author {
        font-size: 12px;
    }
    
    .comment-children .comment-date {
        font-size: 11px;
    }
    
    .comment-form-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .comment-form-left {
        width: 100%;
    }
    
    .comment-form-right {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .comment-form-right input {
        flex: 1;
        min-width: 140px;
    }
    
    .comment-form-right .submit {
        flex: none;
        width: auto;
        padding: 10px 24px;
        margin-top: 0;
    }
    
    .comment-form textarea {
        height: 160px;
    }
    
    .comment-form-left textarea {
        height: 160px;
    }
    
    .reply-status {
        padding: 8px 10px;
        margin-bottom: 12px;
        margin-top: 4px;
        font-size: 12px;
    }
    
    .site-footer {
        margin-top: 30px;
        padding-top: 16px;
        font-size: 13px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .link-modal {
        width: 260px;
        max-width: 90%;
    }
    
    .link-modal-header {
        padding: 18px 16px 14px;
    }
    
    .link-modal-domain {
        font-size: 20px;
    }
    
    .link-modal-url {
        font-size: 13px;
    }
    
    .link-modal-btn {
        padding: 13px 12px;
        font-size: 16px;
    }
    
    .at-user-dropdown {
        min-width: 100px;
    }
    
    .at-user-item {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .post-tags {
        gap: 6px;
    }
    
    .post-tags a {
        padding: 2px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .site-header {
        padding: 12px 0 0;
        margin-bottom: 16px;
    }
    
    .site-title {
        font-size: 22px;
        padding-bottom: 10px;
    }
    
    .site-nav a {
        margin-left: 16px;
        font-size: 13px;
    }
    
    .nav-merge {
        margin-left: 16px;
    }
    
    .post-thumb {
        height: 150px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .post-excerpt {
        font-size: 13px;
    }
    
    .post .post-title {
        font-size: 20px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .post-content h1 {
        font-size: 18px;
        padding-bottom: 8px;
        margin: 24px 0 12px;
    }
    
    .post-content h2 {
        font-size: 16px;
        padding-bottom: 6px;
        margin: 20px 0 10px;
    }
    
    .post-content h3 {
        font-size: 15px;
        margin: 18px 0 10px;
    }
    
    .post-content p {
        margin-bottom: 14px;
    }
    
    .post-content img {
        margin: 12px auto;
        border-radius: 4px;
    }
    
    .post-content blockquote {
        padding: 8px 10px 8px 14px;
        margin: 12px 0;
    }
    
    .post-content ul,
    .post-content ol {
        margin: 12px 0;
        padding-left: 18px;
    }
    
    .post-content li {
        margin-bottom: 4px;
    }
    
    .post-content code {
        font-size: 11.5px;
        padding: 0 4px;
    }
    
    .code-block-wrapper {
        margin: 12px 0;
    }
    
    .post-content pre {
        padding: 32px 8px 8px;
        font-size: 11.5px;
    }
    
    .code-lang {
        top: 8px;
        left: 10px;
        font-size: 10px;
    }
    
    .comment-item {
        padding: 12px 0;
    }
    
    .comment-content-inner {
        gap: 10px;
    }
    
    .comment-avatar {
        width: 34px;
        height: 34px;
    }
    
    .comment-author {
        font-size: 13px;
    }
    
    .comment-content {
        font-size: 13px;
    }
    
    .comment-children {
        margin-left: 44px;
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .comment-form-right {
        flex-direction: column;
    }
    
    .comment-form-right input {
        min-width: 100%;
    }
    
    .comment-form-right .submit {
        width: 100%;
        padding: 10px;
    }
    
    .comment-form textarea {
        height: 140px;
    }
    
    .comment-form-left textarea {
        height: 140px;
    }
    
    .page-navigator a,
    .page-navigator span {
        min-width: 32px;
        height: 32px;
        line-height: 30px;
        padding: 0 6px;
        font-size: 12px;
    }
    
    .widget-title {
        font-size: 12px;
    }
    
    .widget ul li {
        margin-bottom: 6px;
        font-size: 13px;
    }
    
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
        font-size: 12px;
    }
    
    .tag-cloud a {
        font-size: 11px;
        padding: 1px 5px;
    }
    
    .search-box input[type="text"] {
        font-size: 12px;
        padding: 6px 28px 6px 8px;
    }
    
    .site-footer {
        font-size: 12px;
        margin-top: 24px;
        padding-top: 12px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 16px;
        right: 16px;
    }
}

.logged-in-as {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.logged-in-as a {
    color: #666;
    text-decoration: underline;
}

.logged-in-as a:hover {
    color: #333;
}

.archive-title {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
}

.archive-title .archive-icon {
    flex-shrink: 0;
}

.archive-title strong {
    font-weight: 600;
    color: #333;
}

.search-highlight {
    color: #e53935;
    font-weight: 500;
}

.tag-highlight {
    background: #fff3cd;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 500;
    color: #856404;
}

.error-page {
    text-align: center;
    padding: 60px 0;
}

.error-page h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.error-page p {
    color: #999;
    margin-bottom: 15px;
}

.error-page a {
    color: #666;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }

    .widget-area {
        width: 100%;
        order: 2;
    }

    .content-area {
        order: 1;
    }

    .site-title {
        font-size: 24px;
    }

    .post .post-title {
        font-size: 18px;
    }

    .post-content {
        font-size: 14px;
    }

    .post-body {
        flex-direction: column;
        gap: 12px;
    }

    .post-thumb-col {
        width: 100%;
    }

    .post-thumb {
        width: 100%;
        height: 180px;
    }
}

.links-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.links-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: #333;
}

.links-desc {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-bottom: 40px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.link-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.link-screenshot-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.link-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.link-card:hover .link-screenshot {
    transform: scale(1.05);
}

.link-screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 48px;
}

.link-screenshot-placeholder svg {
    width: 48px;
    height: 48px;
}

/* ===== AI 摘要展示 ===== */
.post-abstract {
    margin: 16px 0 24px;
    padding: 14px 18px;
    background: linear-gradient(117deg, #f5f3ff, #ede9fe);
    border: 1px solid #ddd6fe;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.7;
    color: #4c1d95;
}
.post-abstract-ai {
    background: linear-gradient(117deg, #f5f3ff, #ede9fe);
    border-color: #c4b5fd;
}
.post-abstract-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.post-abstract-badge {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(117deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 12px;
    border-radius: 10px;
    font-weight: 500;
}
.post-abstract-badge-normal {
    background: #6b7280;
}
.post-abstract-content {
    color: #4c1d95;
    word-break: break-all;
}
.post-abstract-content:last-child {
    margin-bottom: 0;
}

.link-info {
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.link-avatar-wrapper {
    flex-shrink: 0;
}

.link-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.link-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #f0f0f0;
}

.link-meta {
    flex: 1;
    min-width: 0;
}

.link-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.link-name a {
    color: #333;
    text-decoration: none;
}

.link-name a:hover {
    color: #007bff;
}

.link-url {
    margin: 0;
    font-size: 12px;
    color: #999;
    word-break: break-all;
    margin-bottom: 6px;
}

.link-count {
    display: inline-block;
    font-size: 12px;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.links-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.links-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    display: inline-block;
}

.links-empty p {
    margin: 8px 0;
    font-size: 14px;
}

.links-empty-hint {
    font-size: 12px !important;
    color: #bbb !important;
}

.links-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 13px;
}

.links-footer p {
    margin: 4px 0;
}

@media (max-width: 1024px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .links-title {
        font-size: 24px;
    }
    
    .links-desc {
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .link-screenshot-wrapper {
        height: 160px;
    }
    
    .link-info {
        padding: 14px;
    }
    
    .link-name {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .links-page {
        padding: 24px 16px;
    }
    
    .links-title {
        font-size: 20px;
    }
    
    .link-screenshot-wrapper {
        height: 140px;
    }
    
    .link-avatar,
    .link-avatar-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .link-info {
        padding: 12px;
        gap: 10px;
    }
}

.audio-player {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: min(320px, 100%);
    min-height: 48px;
    padding: 7px 12px 7px 8px;
    margin: 14px 0;
    border: 1px solid #d6ebd9;
    border-radius: 9px 18px 18px 9px;
    background: #eff9f0;
    box-shadow: 0 2px 8px rgba(82, 160, 92, .12);
    vertical-align: middle;
}

.audio-player audio {
    display: none;
}

.audio-player-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #48b45b;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(72, 180, 91, .25);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.audio-player-btn:hover {
    background: #3ca34e;
    transform: scale(1.04);
    box-shadow: 0 4px 10px rgba(72, 180, 91, .32);
}

.audio-player-btn:focus-visible {
    outline: 3px solid rgba(72, 180, 91, .22);
    outline-offset: 2px;
}

.audio-player-btn svg {
    display: block;
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.audio-player-btn .pause-icon,
.audio-player.is-playing .play-icon {
    display: none;
}

.audio-player.is-playing .pause-icon {
    display: block;
}

.audio-player-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 26px;
    flex: 1;
    margin: 0 14px;
    overflow: hidden;
}

.audio-player-wave-bar {
    display: block;
    width: 3px;
    height: 9px;
    border-radius: 3px;
    background: #65bd70;
    opacity: .75;
    transform-origin: center;
}

.audio-player-wave-bar:nth-child(1) { height: 12px; }
.audio-player-wave-bar:nth-child(2) { height: 19px; }
.audio-player-wave-bar:nth-child(3) { height: 15px; }
.audio-player-wave-bar:nth-child(4) { height: 23px; }
.audio-player-wave-bar:nth-child(5) { height: 17px; }
.audio-player-wave-bar:nth-child(6) { height: 12px; }
.audio-player-wave-bar:nth-child(7) { height: 21px; }
.audio-player-wave-bar:nth-child(8) { height: 15px; }
.audio-player-wave-bar:nth-child(9) { height: 23px; }
.audio-player-wave-bar:nth-child(10) { height: 17px; }
.audio-player-wave-bar:nth-child(11) { height: 12px; }
.audio-player-wave-bar:nth-child(12) { height: 19px; }

.audio-player.is-playing .audio-player-wave-bar {
    animation: audio-wave  .78s ease-in-out infinite alternate;
}

.audio-player.is-playing .audio-player-wave-bar:nth-child(2n) { animation-delay: -.28s; }
.audio-player.is-playing .audio-player-wave-bar:nth-child(3n) { animation-delay: -.5s; }

.audio-player-wave.paused .audio-player-wave-bar {
    opacity: .5;
    transform: scaleY(.55);
}

@keyframes audio-wave {
    from { transform: scaleY(.55); }
    to { transform: scaleY(1); }
}

.audio-player-time {
    min-width: 42px;
    color: #6e8b73;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    line-height: 1;
    text-align: right;
}

@media (max-width: 480px) {
    .audio-player {
        width: min(280px, 100%);
        min-height: 44px;
    }

    .audio-player-btn {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }

    .audio-player-wave {
        gap: 2px;
        margin: 0 10px;
    }
}
