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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
}

.red{
    color: red;
}
.green{
    color: green;
}
.orange{
    color: orange;
}

.container {
    width: 95%;
    max-width: 1200px;
    min-width: 320px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.widescreen-layout .container {
    width: 98%;
    max-width: 1600px;
}

.site-header {
    background: #1a1a2e;
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 100;
}

.site-header.transparent-header {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.nav-menu > ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
}

.nav-menu a:hover {
    color: #fa3030;
}

.nav-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.nav-menu a.active {
    color: #667eea;
}

.nav-menu li.dropdown {
    position: relative;
}

.nav-menu li.dropdown:hover .dropdown-menu {
    display: block;
}

.nav-menu .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    min-width: 160px;
    padding: 8px 0;
    margin-top: 5px;
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.1);
}

.nav-menu .dropdown-menu li {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.nav-menu .dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s;
}

.nav-menu .dropdown-menu a:hover {
    background: rgba(102, 126, 234, 0.3);
    color: #fff;
}

.search-box {
    display: flex;
    align-items: stretch;
    height: 40px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.search-box form {
    display: flex;
    align-items: stretch;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.search-box form input {
    padding: 0 18px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
    width: 200px;
    height: 100%;
    box-sizing: border-box;
    font-size: 14px;
    transition: all 0.3s;
}

.search-box form input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-box form input:focus {
    background: rgba(255,255,255,0.15);
}

.search-box form button {
    padding: 0 24px;
    border: none;
    background: #667eea;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    height: 100%;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.search-box form button:hover {
    background: #764ba2;
}

.main-content {
    flex: 1;
    padding: 40px 0;
}

.content-row {
    display: flex;
    gap: 30px;
}

.article-list {
    flex: 1;
}

.article-list h3{
    height: 40px;
    line-height: 40px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.widget h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #efefef;
}

.widget a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.widget a:hover,
.widget a.active {
    color: #667eea;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    padding: 4px 12px;
    background: #f0f2f5;
    border-radius: 20px;
    font-size: 14px;
}

.tag-cloud a:hover {
    background: #667eea;
    color: #fff;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 280px;
    }
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slider-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 4px;
}

.slider-content p {
    font-size: 20px;
    opacity: 0.9;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .slider-content h2 {
        font-size: 28px;
    }
    .slider-content p {
        font-size: 14px;
    }
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 30px;
    border-radius: 6px;
    background: #fff;
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 3;
}

.arrow {
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.arrow:hover {
    background: rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .slider-arrows {
        padding: 0 15px;
    }
    .arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

.top-tag {
    display: inline-block;
    padding: 2px 6px;
    background: #ff7878b0;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}

.article-item {
    display: flex;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-item .article-thumb {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.article-item .article-thumb img {
    padding:4px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f0f2f5;
}

.article-item .thumb-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
}

.article-item .article-info {
    flex: 1;
    padding-left: 20px;
}

.article-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-item h4 a {
    color: #333;
    text-decoration: none;
}

.article-item h4 a:hover {
    color: #667eea;
}

.article-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-item .article-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
    align-items: center;
}

.article-item .article-category-right {
    margin-left: auto;
    padding: 3px 10px;
    background: #f0f2f5;
    color: #aaa;
    border-radius: 4px;
    font-size: 12px;
}

.article-page {
    padding-bottom: 20px;
}

.article-page .container {
    display: flex;
    gap: 30px;
}

.article-detail {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.article-detail .article-header {
    margin-bottom: 30px;
}

.article-detail .article-category {
    margin-left: auto;
    padding: 4px 12px;
    background: #667eea;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
}

.article-detail h1 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-detail .article-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.article-detail .article-cover {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-detail .article-cover img {
    width: 100%;
    height: auto;
}

.article-detail .article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-detail .article-body table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.article-detail .article-body th,
.article-detail .article-body td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    font-size: 14px;
}

.article-detail .article-body th {
    background: #f5f7fa;
    font-weight: 600;
}

.article-detail .article-body h2 {
    font-size: 22px;
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.article-detail .article-body h3 {
    font-size: 20px;
    margin: 20px 0 10px;
}

.article-detail .article-body p {
    margin-bottom: 15px;
}

.article-detail .article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-detail .article-body code {
    background: #f0f2f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

.article-detail .article-body pre {
    background: #2d2d2d;
    color: #fff;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.article-detail .article-body pre code {
    background: none;
    padding: 0;
}

.article-detail .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.article-detail .article-tags .tag {
    padding: 5px 15px;
    background: #f0f2f5;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.article-detail .article-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 30px;
    font-size: 14px;
    color: #999;
}

.category-page .category-header {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.category-page .category-header .category-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px dotted #afafaf;
    padding: 4px;
    background: #fff;
}

.category-page .category-header .category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-page .category-header .category-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 32px;
}

.category-page .category-header .category-info {
    flex: 1;
}

.category-page .category-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.category-page .category-header p {
    color: #666;
}

.archive-page .archive-header {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.archive-page .archive-header h1 {
    font-size: 28px;
}

.archive-list {
    flex: 1;
    
}

.archive-group {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.archive-group h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #667eea;
}

.archive-group ul {
    list-style: none;
    
}

.archive-group li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dotted rgba(123, 120, 120, 0.15);
    gap: 15px;
}

.archive-group .archive-date {
    width: 32px;
    height: 32px;
    background: #667eea;
    color: #fff;
    border-radius: 4px;/* 圆角半径,50% */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: 32px;
}

.archive-group a {
    color: #333;
    text-decoration: none;
}

.archive-group a:hover {
    color: #667eea;
}

.search-page .search-header {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-page .search-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.search-page .search-header p {
    color: #666;
}

.about-page .about-content {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.about-page h1 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.about-page section {
    margin-bottom: 30px;
}

.about-page section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #667eea;
}

.about-page section p {
    color: #666;
    margin-bottom: 10px;
}

.about-page section ul {
    list-style: none;
    padding-left: 20px;
}

.about-page section li {
    color: #666;
    margin-bottom: 8px;
    position: relative;
}

.about-page section li::before {
    content: '•';
    color: #667eea;
    position: absolute;
    left: -20px;
}

.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: #999;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-state .empty-image {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
    opacity: 0;
    transition: opacity .2s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal {
    background: #fff;
    border-radius: 14px;
    width: 88%;
    max-width: 1600px;
    height: 96vh;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.modal-overlay.show .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: #f7f8fa;
    cursor: move;
    user-select: none;
}

.modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #1a1d23;
}

.modal-header button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: 6px;
    color: #8a93a1;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}

.modal-header button:hover {
    color: #1a1d23;
    background: #ebeef3;
}

.modal-actions {
    display: flex;
    gap: 4px;
}

.modal.maximized {
    border-radius: 0;
}

.modal-body {
    flex: 1;
    overflow: hidden;
    min-height: 500px;
    position: relative;
}

.modal-body iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 768px) {
    .modal {
        max-width: none;
        max-height: 95vh;
        border-radius: 10px;
    }
    
    .modal-body {
        min-height: 400px;
    }
    
    .message-form {
        width: 100%;
    }
}

.message-form {
    width: 100%;
}

.message-form .form-group {
    margin-bottom: 16px;
}

.message-form .form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.message-form .form-group input,
.message-form .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.message-form .form-group input:focus,
.message-form .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.message-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.message-form .form-tip {
    padding: 12px;
    background: #f5f7fa;
    border-radius: 6px;
    margin-bottom: 16px;
}

.message-form .form-tip p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.message-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.message-form .btn-cancel,
.message-form .btn-submit {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.message-form .btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.message-form .btn-cancel:hover {
    background: #e0e0e0;
}

.message-form .btn-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.message-form .btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.tools-list {
    padding: 10px;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 8px;
}

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

.tool-item:hover {
    background: #f5f7fa;
}

.tool-icon {
    font-size: 28px;
    margin-right: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: #fff;
}

.tool-info {
    flex: 1;
}

.tool-name {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.tool-desc {
    font-size: 13px;
    color: #888;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a {
    padding: 10px 15px;
    background: #fff;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: #667eea;
    color: #fff;
}

.site-footer {
    background: #16213e;
    color: #fff;
    padding: 50px 0 30px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.site-footer .footer-content {
    display: flex;
    gap: 50px;
    margin-bottom: 35px;
}

.site-footer .footer-section {
    flex: 1;
}

.site-footer .footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.site-footer .footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.site-footer .footer-section p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
    line-height: 1.8;
}

.site-footer .footer-section ul {
    list-style: none;
}

.site-footer .footer-section li {
    margin-bottom: 12px;
}

.site-footer .footer-section a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-footer .footer-section a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.site-footer .contact-icons {
    margin-top: 15px;
    display: flex;
    gap: 20px;
}

.site-footer .contact-item {
    position: relative;
    display: inline-block;
}

.site-footer .contact-item > img:first-child {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.3s;
}

.site-footer .contact-item:hover > img:first-child {
    transform: scale(1.1);
}

.site-footer .contact-item .qrcode {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 128px;
    height: 128px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    margin-bottom: 10px;
    border: 2px solid rgba(255,255,255,0.2);
    z-index: 100;
}

.site-footer .contact-item:hover .qrcode {
    opacity: 1;
    visibility: visible;
}

.site-footer .footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

.site-footer .footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer .footer-bottom a:hover {
    color: #667eea;
}

.announcement-bar {
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    color: #fff;
    padding: 5px 0;
    margin: -10px 0 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 200;
    font-size: 15px;
    line-height: 45px;
    height: 45px;
}

.announcement-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: absolute;
    left: 0;
    top: 0;
}

.announcement-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.announcement-item i {
    font-size: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.site-closed-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.site-closed-content {
    text-align: center;
    color: #fff;
    padding: 40px;
}

.site-closed-content .closed-image {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
    border-radius: 50%;
    animation: bounce 2s ease-in-out infinite;
}

.site-closed-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.site-closed-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

body.site-closed-mode {
    overflow: hidden;
}

body.site-closed-mode .site-header,
body.site-closed-mode .main-content,
body.site-closed-mode .site-footer {
    display: none !important;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }

    .article-page .container {
        gap: 20px;
    }

    .article-detail {
        padding: 20px;
    }

    .article-detail h1 {
        font-size: 26px;
    }

    .content-row {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .category-page .category-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .category-page .category-header .category-image {
        width: 100px;
        height: 100px;
    }

    .site-header {
        min-height: auto;
        padding: 10px 0;
    }

    .site-header .container {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
    }

    .nav-menu ul {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 14px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .search-box {
        width: 100%;
        max-width: none;
        height: 36px;
    }

    .search-box input {
        width: 100%;
        flex: 1;
        padding: 0 12px;
        font-size: 13px;
    }

    .search-box button {
        padding: 0 18px;
        font-size: 13px;
    }

    .content-row {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .featured-article {
        flex-direction: column;
    }

    .featured-article .article-cover {
        width: 100%;
        height: 200px;
    }

    .article-item {
        flex-direction: column;
        
    }

    .article-item .article-thumb {
        width: 100%;
        height: 150px;
        margin-bottom: 15px;
    }

    .article-item .article-info {
        padding-left: 0;
    }

    .article-page {
        flex-direction: column;
    }

    .article-page .container {
        flex-direction: column;
        gap: 20px;
    }

    .article-detail {
        padding: 15px;
    }

    .article-detail h1 {
        font-size: 22px;
    }

    .article-detail .article-body img {
        max-width: 100%;
        height: auto;
    }

    .article-detail .article-body table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-detail .article-body pre {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    .site-footer .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}
