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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-lg-8 {
    width: 100%;
    padding: 0 10px;
}

.col-lg-offset-2 {
    margin-left: 0;
}

.col-md-10 {
    width: 100%;
    padding: 0 10px;
}

.col-md-offset-1 {
    margin-left: 0;
}

@media (min-width: 992px) {
    .container {
        max-width: 1170px;
    }
    
    .col-lg-8 {
        width: 66.66666667%;
        margin-left: 16.66666667%;
    }
    
    .col-lg-offset-2 {
        margin-left: 16.66666667%;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: #3498db;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    outline: none;
}

.icon-bar {
    width: 24px;
    height: 2.5px;
    background-color: #333;
    margin: 3px 0;
    border-radius: 2px;
}

.navbar-collapse {
    display: flex;
    justify-content: flex-end;
}

.nav {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav li {
    display: inline-block;
}

.navbar-nav a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 18px;
    border-radius: 8px;
    background: transparent;
}

.navbar-nav a:hover {
    color: #3498db;
    background: #f0f7ff;
    transform: translateY(-1px);
}

.navbar-nav a:active {
    transform: translateY(0);
}

.intro-header {
    margin-top: 60px;
    padding: 80px 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #404040;
    text-align: center;
    position: relative;
}

.intro-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.site-heading {
    color: #fff;
    position: relative;
    z-index: 1;
}

.site-heading h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.site-heading .subheading {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
}

.postlist-container {
    padding: 40px 0;
}

.post-preview {
    margin-bottom: 30px;
    padding: 20px 0;
}

.post-preview a {
    color: #333;
    text-decoration: none;
    display: block;
}

.post-preview a:hover {
    color: #3498db;
}

.post-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-subtitle {
    color: #666;
    margin-bottom: 15px;
    font-size: 16px;
}

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

.post-meta-categories {
    margin-bottom: 10px;
}

.post-meta-categories .category {
    display: inline-block;
    padding: 4px 12px;
    background: #0085a1;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
    text-decoration: none;
}

.post-meta-categories .category:hover {
    background: #006b81;
}

.post-meta-tags {
    margin-top: 10px;
}

.post-meta-tags .tag {
    display: inline-block;
    padding: 3px 10px;
    background: #e0e0e0;
    color: #555;
    font-size: 12px;
    border-radius: 12px;
    margin-right: 6px;
    margin-bottom: 6px;
    text-decoration: none;
}

.post-meta-tags .tag:hover {
    background: #0085a1;
    color: white;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 40px 0;
}

.sidebar-container {
    padding-bottom: 40px;
}

.sidebar-container h5 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.list-inline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.list-inline li {
    display: inline-block;
}

.list-inline a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 3px;
    transition: all 0.2s;
}

.list-inline a:hover {
    background: #3498db;
    color: #fff;
}

.site-footer {
    background: #f8f8f8;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.footer-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-icp {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-icp a {
    color: #999;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
}

.footer-icp .police-icp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-icp .police-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
}

.footer-icp .police-text {
    font-size: 13px;
    color: #999;
}

.footer-copyright {
    color: #999;
    font-size: 13px;
    text-align: center;
    line-height: 1.8;
}

.footer-copyright .copyright-symbol {
    font-family: Arial, sans-serif;
}

.footer-copyright .site-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright .site-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.footer-copyright .rights-reserved {
    color: #888;
    font-size: 12px;
}

.footer-copyright .power-by {
    color: #aaa;
    font-size: 12px;
}

.footer-copyright .power-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright .power-link:hover {
    color: #333;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.article-image {
    width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.tab-image {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
        padding: 12px 16px;
        min-height: 48px;
        min-width: 48px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .navbar-toggle:hover,
    .navbar-toggle:active {
        background: rgba(0,0,0,0.05);
        border-radius: 8px;
    }

    .icon-bar {
        transition: all 0.3s ease;
    }

    #huxblog_navbar.in .navbar-toggle .icon-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #huxblog_navbar.in .navbar-toggle .icon-bar:nth-child(2) {
        opacity: 0;
    }

    #huxblog_navbar.in .navbar-toggle .icon-bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .navbar-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-15px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #huxblog_navbar.in .navbar-collapse {
        display: block;
    }

    .nav {
        flex-direction: column;
        gap: 0;
        padding: 0 16px;
    }

    .nav li {
        display: block;
    }

    .navbar-nav a {
        padding: 16px 20px;
        display: block;
        background: none;
        border-radius: 10px;
        margin-bottom: 6px;
        font-size: 17px;
        line-height: 1.6;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .navbar-nav a:hover,
    .navbar-nav a:active {
        background: #f0f7ff;
        color: #3498db;
        transform: none;
        box-shadow: none;
    }

    .navbar-nav a:first-child {
        margin-top: 4px;
    }

    .navbar-nav a:last-child {
        margin-bottom: 4px;
    }
}

@media (max-width: 576px) {
    .navbar .container {
        padding: 8px 12px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .navbar-nav a {
        padding: 14px 16px;
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .navbar-brand {
        font-size: 16px;
    }

    .navbar-toggle {
        padding: 10px 14px;
        min-height: 44px;
        min-width: 44px;
    }

    .navbar-nav a {
        padding: 12px 14px;
        font-size: 15px;
    }
}

    .intro-header {
        padding: 45px 15px;
        margin-top: 56px;
        min-height: 200px;
    }

    .site-heading h1 {
        font-size: 26px;
        padding: 0 10px;
        line-height: 1.3;
    }

    .site-heading .subheading {
        font-size: 14px;
        padding: 0 10px;
        margin-top: 10px;
    }

    .post-title {
        font-size: 18px;
        line-height: 1.4;
    }
    
    .post-subtitle {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .post-preview {
        padding: 15px 0;
    }
    
    .post-preview a {
        padding: 12px;
        border-radius: 8px;
        transition: background 0.2s;
    }
    
    .post-preview a:hover {
        background: #fafafa;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .postlist-container {
        padding: 20px 0;
    }
    
    hr {
        margin: 20px 0;
    }
    
    .site-footer {
        padding: 20px 0;
        margin-top: 20px;
    }

    .list-inline {
        gap: 10px;
    }

    .list-inline a {
        padding: 8px 14px;
        font-size: 14px;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    .post-meta-categories .category {
        padding: 6px 14px;
        font-size: 13px;
    }

    .post-meta-tags .tag {
        padding: 5px 12px;
        font-size: 13px;
    }

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

@media (max-width: 480px) {
    .site-heading h1 {
        font-size: 22px;
        line-height: 1.25;
    }
    
    .site-heading .subheading {
        font-size: 13px;
        margin-top: 8px;
    }
    
    .post-title {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .post-subtitle {
        font-size: 14px;
    }
    
    .post-meta {
        font-size: 13px;
    }
    
    .navbar-brand {
        font-size: 17px;
        font-weight: 600;
    }
    
    .intro-header {
        padding: 35px 10px;
        min-height: 180px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .post-preview {
        padding: 12px 0;
    }
    
    .post-preview a {
        padding: 10px;
    }
    
    .post-meta-categories .category {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .post-meta-tags .tag {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .list-inline {
        gap: 8px;
    }
    
    .list-inline a {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .footer-icp {
        gap: 10px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .container {
        max-width: 750px;
    }
    
    .site-heading h1 {
        font-size: 36px;
    }
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #3498db;
    color: #fff !important;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    color: #fff !important;
    outline: 3px solid #2ecc71;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

#accessibility-announcer {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#shortcuts-help {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10001;
}

#shortcuts-help .help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

#shortcuts-help .help-header h2 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

#shortcuts-help .close-help {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

#shortcuts-help .close-help:hover {
    color: #333;
}

#shortcuts-help .shortcut-section {
    margin-bottom: 25px;
}

#shortcuts-help .shortcut-section h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#shortcuts-help .shortcut-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#shortcuts-help .shortcut-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

#shortcuts-help .shortcut-list li:last-child {
    border-bottom: none;
}

#shortcuts-help .shortcut-label {
    color: #333;
    font-size: 15px;
}

#shortcuts-help .shortcut-keys {
    display: flex;
    gap: 5px;
}

#shortcuts-help .key {
    display: inline-block;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    font-family: monospace;
}

.shortcut-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 1000;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.shortcut-hint:hover {
    opacity: 1;
}

.shortcut-hint kbd {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    margin: 0 2px;
}

@media (max-width: 768px) {
    #shortcuts-help {
        padding: 20px;
    }

    #shortcuts-help .help-header h2 {
        font-size: 18px;
    }

    .shortcut-hint {
        display: none;
    }
}