body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow-x: hidden;
}
* {
    box-sizing: border-box;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 20px;
}
.header {
    width: 100%;
    max-width: 1300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    padding: 10px 20px;
    border-radius: 10px;
    overflow: hidden;
}
.header .logo {
    display: flex;
    align-items: center;
    padding: 0px 0px 0px 30px;
}
.header .logo svg {
    height: 30px;
    margin-right: 10px;
    fill: #0078d4;
}
.header .logo span {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}
.header .search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 10px;
    flex-grow: 1;
    max-width: 300px;
}
.header .search-bar input {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 0.9em;
    background-color: transparent;
    width: 100%;
}
.header .search-bar button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.header .search-bar button svg {
    height: 20px;
    fill: #999;
    transition: fill 0.3s ease;
}
.header .search-bar button:hover svg {
    fill: #0078d4;
}
.main-content {
    width: 70%;
    padding: 20px;
    border-radius: 10px;
}
.main-content h1 {
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #0078d4;
}
.main-content .sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.main-content .sub-header .search-count,
.main-content .sub-header .progress {
    font-size: 0.9em;
    color: #777;
}
.main-content .actions {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.main-content .actions > * {
    margin-right: 10px;
    font-size: 0.9em;
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease;
}
.main-content .actions > *:hover {
    color: #0078d4;
}
.main-content .actions svg {
    height: 18px;
    fill: #777;
    vertical-align: middle;
    transition: fill 0.3s ease;
}
.main-content .actions > *:hover svg {
    fill: #0078d4;
}
.main-content h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
    margin-top: 20px;
    color: #333;
}
.main-content p {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}
.sidebar {
    width: 28%;
    padding: 20px;
    border-radius: 10px;
}
.sidebar h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    color: #0078d4;
}
.sidebar ol {
    padding-left: 20px;
}
.sidebar li {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 10px;
}
.sidebar li a {
    color: #0078d4;
    text-decoration: none;
    transition: color 0.3s ease;
}
.sidebar li a:hover {
    text-decoration: underline;
    color: #005bb5;
}
.sidebar li .source {
    display: block;
    font-size: 0.8em;
    color: #777;
    margin-top: 5px;
}
@media (max-width: 900px) {
    .container {
        flex-wrap: wrap;
        flex-direction: column;
    }
    .main-content, .sidebar {
        width: 100%;
        order: 1;
    }
    .header .search-bar {
        max-width: 200px;
        margin-top: 10px;
    }
}
pre {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 20px;
}
code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #d63384;
}
ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}
ul li, ol li {
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}
ul li::marker {
    color: #0078d4;
}
ol li::marker {
    color: #0078d4;
    font-weight: bold;
}
strong, b {
    color: #333;
    font-weight: bold;
}
blockquote {
    border-left: 4px solid #0078d4;
    padding: 10px 20px;
    margin: 20px 0;
    background-color: #f8f9fa;
    color: #555;
    font-style: italic;
}
blockquote p {
    margin: 0;
}
a {
    color: #0078d4;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #005bb5;
    text-decoration: underline;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}
table tr:hover {
    background-color: #f1f1f1;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}
hr {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 20px 0;
}
.blog-footer {
    width: 100%;
    padding: 30px 0;
    background-color: #f5f5f5;
    border-top: 1px solid #eaeaea;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
}
.footer-bottom {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-bottom div {
    line-height: 1.6;
}
.blog-footer a {
    color: #0078d4;
    text-decoration: none;
    transition: color 0.3s ease;
}
.blog-footer a:hover {
    color: #005bb5;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .blog-footer {
        padding: 20px 0;
        font-size: 0.85em;
    }
    .footer-bottom {
        padding: 0 15px;
    }
}
.tip-box {
    background-color: #f0f8ff;
    border-left: 5px solid #1e90ff;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 13px;
    margin-top: 20px;
}
.comment-container {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.comment-container h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}
.comment-post-box {
    background: transparent;
    margin-bottom: 40px;
    padding: 0;
    transition: all 0.3s ease;
}
.comment-post-box.reply-active {
    margin-top: 15px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease;
}
.comment-user-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.input-group {
    flex: 1;
    min-width: 200px;
}
.input-control, 
.textarea-control {
    width: 100%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 15px;
    font-family: inherit;
    font-size: 0.95em;
    outline: none;
    transition: all 0.3s ease;
    color: #333;
    box-sizing: border-box;
}
.textarea-control {
    border-radius: 15px;
    min-height: 80px;
    resize: vertical;
}
.input-control:focus, 
.textarea-control:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);
}
.comment-footer-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto; 
}
.captcha-wrapper input {
    width: 120px !important; 
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 12px;
    outline: none;
    transition: border-color 0.3s;
}
.captcha-wrapper input:focus {
    border-color: #0078d4;
}
.captcha-wrapper img {
    height: 35px; 
    width: auto;
    border-radius: 5px;
    cursor: pointer;
    vertical-align: middle;
    margin-bottom: 0;
}
.btn-submit {
    background-color: #0078d4;
    color: #fff;
    border: none;
    padding: 8px 30px;
    border-radius: 20px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}
.btn-submit:hover {
    background-color: #005bb5;
}
.cancel-reply-btn {
    font-size: 0.9em;
    color: #999;
    text-decoration: none;
    cursor: pointer;
    display: none;
}
.cancel-reply-btn:hover {
    color: #555;
}
.comment-list {
    margin-top: 40px;
}
.comment-entry {
    display: flex;
    gap: 18px; 
    margin-bottom: 30px;
    position: relative;
    transition: background-color 0.3s ease;
}
.comment-avatar {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.comment-avatar img {
    width: 48px; 
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
    border: 2px solid #fff; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.comment-avatar img:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 15px rgba(0, 120, 212, 0.25);
}
.comment-body {
    flex: 1;
    min-width: 0;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee; 
}
.comment-entry:last-child .comment-body {
    border-bottom: none;
}
.comment-header-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}
.comment-author {
    font-size: 1.05em;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.3px;
}
.comment-date {
    font-size: 0.8em;
    color: #999;
    font-family: Consolas, Monaco, monospace;
}
.comment-content-text {
    font-size: 15px; 
    line-height: 1.8; 
    color: #2c3e50; 
    margin-bottom: 12px;
    word-wrap: break-word; 
    text-align: justify; 
    letter-spacing: 0.02em; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
}
@media (max-width: 600px) {
    .comment-content-text {
        font-size: 14px;
        line-height: 1.6;
        text-align: left; 
    }
}
.comment-actions {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
}
.comment-reply-link {
    font-size: 0.85em;
    color: #0078d4;
    background-color: rgba(0, 120, 212, 0.05); 
    padding: 4px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
}
.comment-reply-link:hover {
    background-color: #0078d4;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 120, 212, 0.3);
}
.comment-child {
    margin-top: 20px;
    margin-bottom: 0;
    padding-left: 0;
}
.comment-child .comment-body {
    border-bottom: none;
    padding-bottom: 0;
}
.comment-body .comment-entry {
    border-left: 3px solid #e0f2ff; 
    padding-left: 20px; 
    margin-left: -10px; 
}
.comment-child .comment-avatar img {
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .comment-user-inputs {
        flex-direction: column;
        gap: 10px;
    }
    .comment-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .captcha-wrapper {
        margin-right: 0;
        justify-content: space-between;
    }
    .btn-submit {
        width: 100%;
    }
    .comment-entry {
        gap: 12px;
    }
    .comment-avatar img {
        width: 40px;
        height: 40px;
    }
    .comment-child .comment-avatar img {
        width: 32px;
        height: 32px;
    }
    .comment-body .comment-entry {
        padding-left: 12px;
        border-left-width: 2px;
    }
}
.comment-content-text a {
    color: #0078d4;
    text-decoration: none;
    border-bottom: 1px dotted rgba(0, 120, 212, 0.5); 
    transition: all 0.2s;
    font-weight: 500;
}
.comment-content-text a:hover {
    color: #005bb5;
    border-bottom-style: solid; 
    background-color: rgba(0, 120, 212, 0.1); 
}
.comment-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
}
.comment-content-text blockquote {
    margin: 10px 0;
    padding: 10px 15px;
    background-color: #f5f9fc; 
    border-left: 4px solid #0078d4; 
    color: #666;
    font-size: 0.9em;
    border-radius: 0 8px 8px 0;
}
.comment-content-text code {
    background-color: #f0f0f0;
    color: #d63384; 
    padding: 2px 6px;
    border-radius: 4px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 0.9em;
    margin: 0 2px;
}
.comment-content-text img.emoji {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 2px;
    vertical-align: text-bottom;
    box-shadow: none;
    border-radius: 0;
}