/* 自定义字体已移至主题设置，可在后台配置 */
/*
@font-face  {
    font-family: 'HarmonyOS Sans SC Medium';
    src:url('https://www.osgz.com/usr/themes/Anghunk/font/HarmonyOS_Sans/HarmonyOS_Sans_SC_Medium.woff') format('woff');
}
*/

::-webkit-scrollbar {
    width: 13px;
}

::-webkit-scrollbar-button {
    display: none;
}

::-webkit-scrollbar-thumb {
    min-height: 16px;
    background-color: #999999;
    background-clip: padding-box;
    border: 3px solid #fdfdfd;
    border-radius: 5px;
}

::selection {
    background: #444;
    color: #fff;
}

body {
    font-family: 'HarmonyOS Sans SC Medium', serif;
    color: #24292e;
    line-height: 1.6;
    font-size: 16px;
    background: #fafafa;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #cccccc;
    margin: 1rem 0;
    padding: 0;
}

img {
    max-width: 100%;
    border-radius: 5px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    vertical-align: middle
    
}

.icon {
    width: 1.8em;
    height: 1.8em;
    vertical-align: -1em;
    fill: currentColor;
    overflow: hidden;
}

a img {
    border:none;
}

pre,
code {
    font-size: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    background-color: #3a3a3a;
    color: #EEEEEE
}

pre,
code {
    font-size: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    background-color: #3a3a3a;
    color: #EEEEEE
}

code {
    padding: 1px 5px
}

pre {
    padding: 8px 12px;
    overflow-x: scroll
}

pre>code {
    border: 0;
    padding-right: 0;
    padding-left: 0
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    word-break: break-all;
}

table th {
    background-color: #f6f8fa;
}

table th, table td {
    padding: 10px 20px;
    border: 1px solid #dfe2e5;
}

blockquote {
    margin-left: 4px;
    font-weight: 300;
    border-left: 3.8px solid rgb(80 80 80);
    background-color: rgba(51 51 51/5%);
    padding-left: 20px;
    word-break: break-all;
}

a, a:hover {
    color: #24292e;
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 400;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.375rem;
}

h3 {
    font-size: 1.25rem;
}

h4, h5, h6 {
    font-size: 1.125rem;
}

ul {
    padding-left: 0px;
    list-style-type: disc;
    list-style: none; 
}

/*默认 box-shadow 数值：rgba(236, 236, 236, 0.86)*/
.main {
    max-width: 660px;
    overflow: hidden;
    margin: 60px auto;
    padding: 50px;
    background: #ffffff;
    box-shadow: 0 10px 20px 0 rgba(236, 236, 236, 0.86);
    border-radius: 8px;
}

.header {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.header h1,
.header h2 {
    margin: 0;
    padding: 0;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.header h2 {
    font-size: .9rem;
    line-height: 2rem;
}

.header nav {
    border-top: 1px solid #f4f4f4;
}

.header nav ul,
.header nav li {
    margin: 0;
}

.header nav ul.flat {
    padding: 0;
}

.header nav ul.flat li {
    display: inline-block;
    list-style: none;
    margin-left: 0;
    margin-right: 10px;
    margin-top: 20px;
    text-transform: capitalize;
}

.header nav ul.flat li.active a {
    color: #24292e;
}

.header nav ul.flat li a {
    color: #586069;
}

.header nav ul.flat li a:hover {
    color: #646464;
    text-decoration: none;
}

.header .site-description {
    display: flex;
    justify-content: space-between;
}

.header .site-description nav {
    margin: 0;
    padding: 0;
    border: none;
    min-width: 50px;
    margin-bottom: 10px;
}

.header .site-description nav ul a {
    display: inline-block;
    margin-right: 5px;
    text-decoration: none;
}


.header .site-description nav ul a:hover {
    color: #586069;
}

.section .section-header {
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #999999;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.recent-posts .posts .post {
    margin-bottom: 30px;
}

.recent-posts .posts .post .time,
.post .post-header .time,
.list .posts .post .time {
    font-size: 0.725rem;
    color: #bec8d2;
    margin-bottom: 2px;
}

.meta {
    margin-top: 10px;
    font-size: 12px;
    color: #999999;
    margin-bottom: 2px
}

.post-tags {
    margin-top: 20px;
}

.post-tags .tags {
    margin-top: 40px;
}

.post-tags .tags a {
    display: inline-block;
    border-radius: 2px;
    padding: 0.1rem 0.4rem;
    color: #fff;
    line-height: 20px;
    font-size: 12px;
    text-decoration: none;
    margin: 0 1px;
    border: 1px solid #41464b;
    background-color: #41464b;
}

.footer {
    text-align: right;
    font-size: 0.75em;
    color: #999999;
    border-top: 1px solid #f4f4f4;
    padding-top: 20px;
    margin-top: 20px;
}

.highlight {
    background: #3a3a3a;
    border: 3px solid #e8e8e8;
}

.highlight pre,
.highlight code,
.highlight kbd,
.highlight samp {
    font-weight: normal;
    background-color: inherit;
    white-space: pre;
    color: #EEEEEE;
}

.highlight pre {
    margin-bottom: 0;
    margin-top: 0;
    padding: 10px;
    overflow: auto;
}

.highlight pre code {
    padding: 0;
}

.highlight pre::-webkit-scrollbar {
    height: 10px;
}

.highlight pre::-webkit-scrollbar-button {
    display: none;
}

.highlight pre::-webkit-scrollbar-thumb {
    min-height: 16px;
    background-color: #cccccc;
    background-clip: padding-box;
    border: 3px solid #fdfdfd;
    border-radius: 5px;
}

.highlight pre::-webkit-scrollbar-thumb:active {
    background-color: #999999;
    border-width: 2px;
  }

@media (max-width: 767px) {
    h1 {
        font-size: 1.375rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    h4, h5, h6 {
        font-size: 1rem;
    }

    body {
        background: #ffffff;
    }

    .main {
        padding: 30px;
        margin: 0 auto;
        box-shadow: none;
    }

    .header h2 {
        display: none;
    }

    .container {
        margin-top: 10px;
    }

    .highlight pre::-webkit-scrollbar {
        display: none;
    }
}

/*回到顶部*/

a.to_top {
    text-decoration: none;
    position: fixed;
    bottom: 40px;
    right: 30px;
    background: #f0f0f0;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    line-height: 36px;
    font-size: 18px;
    text-align: center;
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-property: background-color;
    transition-property: background-color;
    display: none;
}

a.to_top span {
  color: #888888;
}

a.to_top:hover {
  cursor: pointer;
  background: #dfdfdf;
}

a.to_top:hover span {
  color: #555555;
}

/*美化框*/

#mhz,
#szh,
#yyz{
    /*圆角值,在此定义*/
    border-radius: 8px;
}
/*迷幻紫*/

#mhz {
    color: #555555;
    overflow: hidden;
    margin: 10px 0;
    padding: 15px 15px 15px 35px;
    /*border-radius: 10px;*/
    box-shadow: 6px 0 12px -5px rgb(190, 196, 252), -6px 0 12px -5px rgb(189, 196, 252);
    background-color: #8EC5FC;
    background-image: linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
    background-image: -webkit-linear-gradient(62deg, #8EC5FC 0%, #E0C3FC 100%);
}

/*优雅紫*/

#yyz {
    color: #ffffff;
    overflow: hidden;
    margin: 10px 0;
    padding: 15px 15px 15px 35px;
    /*border-radius: 10px;*/
    box-shadow: 6px 0 12px -5px rgb(175, 160, 208), -6px 0 12px -5px rgba(177, 161, 207, 0);
    background-image: radial-gradient( circle farthest-corner at 10% 20%, rgba(95, 117, 227, 1) 0%, rgba(188, 167, 205, 1) 90%);
}


/*深邃黑*/

#szh {
    color: #c7c7c7;
    overflow: hidden;
    margin: 10px 0;
    padding: 15px 15px 15px 35px;
    /*border-radius: 5px;*/
    box-shadow: 6px 0 12px -5px rgb(155, 170, 185), -6px 0 12px -5px rgba(177, 161, 207, 0);
    background-image: radial-gradient( circle farthest-corner at 10% 20%, rgba(0, 0, 0, 1) 0%, rgba(64, 64, 64, 1) 90.2%);
}

/*隐藏文字*/

darkb-text {
    background-color: #12121c;
    color: #12121c;
    text-shadow: none;
    transition: color 0.3s;
    /*padding-top: 3px;*/
    padding: 2px 2px 2px 2px;
    font-size: 14px;
    border-radius: 4px;
}

darkb-text:hover,
darkb-text:active {
    color: #FFF;
}

/* 分页 */

.pagination {
    margin: 0;
    padding: 10px 0 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
}

.pagination li {
    list-style: none;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.pagination .page-previous {
    margin-right: 20px;
    padding-right: 20px;
}

.pagination .page-item.page-previous {
    text-align: right;
}

.pagination .page-item.page-next {
    text-align: right;
}

/* 视频尺寸 */

.size-video {
    position: relative;
    border-radius: 5px;
    padding-bottom: 66.5%;
    height: 0;
    border: 6px solid #f0f0f0;
    overflow: hidden;
}

.size-video iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 评论区样式 */

.comments-area {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.comments-title {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #24292e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.comment-body {
    margin-bottom: 20px;
    padding: 16px;
    background: #fafbfc;
    border-radius: 6px;
    border: 1px solid #e1e4e8;
    transition: all 0.2s;
}

.comment-body:hover {
    background: #f6f8fa;
    border-color: #d1d5da;
}

.comment-child {
    margin-left: 0;
    margin-top: 15px;
    padding-left: 15px;
    border-left: 3px solid #e1e4e8;
}

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

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

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #e8e8e8;
}

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

.comment-meta {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    font-weight: 600;
    color: #24292e;
    font-size: 0.875rem;
}

.comment-time {
    color: #999999;
    font-size: 0.75rem;
}

.comment-reply {
    margin-left: auto;
}

.comment-reply a {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    color: #586069;
    background: transparent;
    border: 1px solid #d1d5da;
    border-radius: 3px;
    transition: all 0.2s;
}

.comment-reply a:hover {
    color: #24292e;
    border-color: #959da5;
    text-decoration: none;
}

.comment-text {
    margin: 0;
    line-height: 1.6;
    color: #24292e;
    word-break: break-word;
    font-size: 0.875rem;
}

.comment-text p {
    margin: 10px 0;
}

.comment-text p:first-child {
    margin-top: 0;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-text img {
    box-shadow: none;
    border-radius: 0;
}

.comment-emoji {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    display: inline-block;
    margin: 0 2px;
}

.author-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    color: #586069;
    background: transparent;
    border: 1px solid #d1d5da;
    border-radius: 3px;
    font-weight: 600;
}

.respond {
    margin-top: 40px;
    padding: 20px;
    background: transparent;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.comment-reply-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #24292e;
}

.cancel-comment-reply {
    float: right;
    font-size: 0.8125rem;
}

.cancel-comment-reply a {
    color: #586069;
    text-decoration: none;
}

.cancel-comment-reply a:hover {
    color: #24292e;
    text-decoration: underline;
}

.comment-login-info {
    padding: 12px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-bottom: 18px;
    font-size: 0.8125rem;
    color: #586069;
}

.comment-login-info a {
    color: #24292e;
    font-weight: 500;
}

.comment-form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.comment-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    color: #24292e;
    font-weight: 600;
}

.comment-field label.required:after {
    content: " *";
    color: #d73a49;
}

.comment-field input.text,
.comment-field textarea.textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: 'HarmonyOS Sans SC Medium', serif;
    background: #ffffff;
    transition: all 0.2s;
    box-sizing: border-box;
}

.comment-field input.text:focus,
.comment-field textarea.textarea:focus {
    outline: none;
    border-color: #41464b;
}

.comment-textarea {
    grid-column: 1 / -1;
}

.comment-field textarea.textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

button.submit {
    padding: 8px 20px;
    background: #41464b;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: 'HarmonyOS Sans SC Medium', serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

button.submit:hover {
    background: #24292e;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.comment-private {
    margin-top: 12px;
    margin-bottom: 12px;
}

.comment-private label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: #586069;
    cursor: pointer;
    font-weight: normal;
}

.comment-private input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.private-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-left: 6px;
}

.comments-closed {
    padding: 25px;
    background: transparent;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    text-align: center;
    color: #586069;
    font-size: 0.875rem;
}

@media (max-width: 767px) {
    .comment-child {
        margin-left: 0;
        padding-left: 10px;
        border-left: 2px solid #e1e4e8;
    }

    .comment-body {
        padding: 12px;
    }

    .comment-content {
        gap: 10px;
    }

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

    .comment-text {
        font-size: 0.8125rem;
    }

    .comment-form-fields {
        grid-template-columns: 1fr;
    }

    .respond {
        padding: 18px;
    }

    .comment-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .emoji-picker-wrapper {
        order: 2;
    }

    button.submit {
        order: 1;
    }
}

/* 统计卡片样式 */

.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 15px;
    background: transparent;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: #d1d5da;
    background: #fafafa;
}

.stat-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #586069;
    font-size: 24px;
    margin-bottom: 12px;
}

.stat-info {
    width: 100%;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #24292e;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8125rem;
    color: #586069;
}

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

    .stat-card {
        padding: 20px 12px;
    }
}

@media (max-width: 767px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 18px 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }
}

/* 表情选择器样式 */

.emoji-picker-wrapper {
    position: relative;
}

.emoji-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    color: #586069;
    font-size: 0.8125rem;
    font-family: 'HarmonyOS Sans SC Medium', serif;
    cursor: pointer;
    transition: all 0.2s;
}

.emoji-toggle:hover {
    border-color: #d1d5da;
    background: #fafafa;
    color: #24292e;
}

.emoji-toggle i {
    font-size: 1rem;
}

.emoji-picker {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-width: 320px;
}

.emoji-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-item {
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.emoji-item:hover {
    background: #fafafa;
    border-color: #e8e8e8;
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .emoji-picker {
        max-width: 280px;
    }

    .emoji-list {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
    }

    .emoji-item {
        width: 28px;
        height: 28px;
    }
}

/* 友情链接样式 */

.links-description {
    margin-bottom: 30px;
    padding: 15px;
    background: transparent;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    color: #586069;
    font-size: 0.875rem;
    line-height: 1.7;
}

.links-container {
    margin-top: 15px;
}

.links-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.links-container li {
    margin: 0;
}

.links-container li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 15px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    text-decoration: none;
    color: #24292e;
    transition: all 0.2s ease;
    height: 100%;
}

.links-container li a:hover {
    border-color: #d1d5da;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.links-container li a img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin-bottom: 12px;
    object-fit: cover;
    border: 2px solid #e8e8e8;
}

.links-container li a span {
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
    color: #24292e;
}

.links-container li a .link-desc {
    font-size: 0.75rem;
    color: #586069;
    text-align: center;
    line-height: 1.5;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    .links-container ul {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .links-container li a {
        padding: 16px 12px;
    }

    .links-container li a img {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .links-container li a span {
        font-size: 0.875rem;
    }

    .links-container li a .link-desc {
        font-size: 0.6875rem;
    }
}