:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: rgba(102, 126, 234, 0.15);
    --secondary: #64748b;
    --dark: #1e293b;
    --dark-light: #475569;
    --light: #f1f5f9;
    --white: #ffffff;
    --border: rgba(0, 0, 0, 0.06);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.article-top {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 6px;
}

.article-edit {
    font-size: 12px;
    color: #667eea;
    margin-left: 8px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-edit:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.article-edit i {
    margin-right: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 50%, #e8eef3 100%);
    min-height: 100vh;
    color: var(--dark);
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    gap: 30px;
}

.sidebar-wrapper {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

.sidebar {
    width: 100%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo h1 {
    font-size: 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.logo h1 a {
    text-decoration: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    color: var(--secondary);
    font-size: 14px;
}

.profile {
    text-align: center;
    margin-bottom: 40px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(102, 126, 234, 0.3);
    margin-bottom: 16px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}

.profile h3 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 8px;
}

.profile p {
    color: var(--secondary);
    font-size: 14px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.sidebar-widget {
    margin-bottom: 20px;
}

.widget-search {
    margin-bottom: 20px;
    margin-top: -20px;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    color: var(--dark);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
}

.nav-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.nav-list li {
    margin-bottom: 0;
}

.nav-list a {
    display: block;
    color: var(--dark-light);
    text-decoration: none;
    padding: 16px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.1);
    text-align: center;
}

.nav-list a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.category-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.category-tags li {
    margin-bottom: 0;
}

.category-tags a {
    display: inline-block;
    color: var(--dark-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.04);
    font-size: 13px;
}

.category-tags a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.05);
}

.tag-cloud {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tag-cloud a {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    color: var(--dark-light);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid transparent;
}

.tag-cloud a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.article-list {
    list-style: none;
}

.article-list li {
    margin-bottom: 15px;
}

.article-list a {
    color: var(--dark-light);
    text-decoration: none;
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.article-list a:hover {
    background: var(--primary-light);
    padding-left: 16px;
    color: var(--primary);
}

.article-list time {
    display: block;
    font-size: 12px;
    color: var(--secondary);
    margin-top: 4px;
}

.calendar {
    width: 100%;
}

.calendar table {
    width: 100%;
    text-align: center;
}

.calendar th, .calendar td {
    padding: 8px;
    font-size: 13px;
}

.calendar th {
    color: var(--secondary);
    font-weight: 500;
}

.calendar td {
    color: var(--dark-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.calendar td:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.calendar .today {
    background: var(--primary);
    color: white;
}

.main-content-wrapper {
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 1;
}

.main-content {
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

.post-grid {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.post-card {
    break-inside: avoid;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    display: block;
    opacity: 1;
    visibility: visible;
}

.read-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.post-card:hover .read-btn {
    opacity: 1;
    transform: translateY(0);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(102, 126, 234, 0.2);
}

.post-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
}

.post-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-content {
    padding: 24px;
}

.post-category {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    font-size: 12px;
    color: white;
    font-weight: 500;
}

.post-category a {
    color: white;
    text-decoration: none;
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
    overflow-wrap: break-word;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta i {
    font-size: 12px;
}

.post-meta a {
    color: inherit;
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--primary);
}

.article-header {
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--secondary);
    font-size: 14px;
}

.article-edit-wrapper {
    display: flex;
    align-items: center;
}

.article-meta a {
    color: var(--primary);
    text-decoration: none;
}

.article-meta a:hover {
    text-decoration: underline;
}

.article-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px 40px 20px 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.article-body img,
.article-content img {
    width: 600px;
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-body h2,
.article-content h2 {
    color: var(--dark);
    font-size: 24px;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.article-body h3,
.article-content h3 {
    color: var(--dark);
    font-size: 20px;
    margin: 25px 0 12px;
}

.article-body p,
.article-content p {
    color: var(--dark-light);
    line-height: 1.9;
    margin-bottom: 16px;
    font-size: 16px;
    text-indent: 2em;
}

.article-body ul, .article-body ol,
.article-content ul, .article-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-body li,
.article-content li {
    color: var(--dark-light);
    line-height: 1.9;
    margin-bottom: 8px;
}

.article-body code,
.article-content code {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: var(--dark);
}

.article-body pre,
.article-content pre {
    background: #1e293b;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 20px 0;
    position: relative;
}

.article-body pre code,
.article-content pre code {
    background: none;
    padding: 0;
    color: #e2e8f0;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    opacity: 0;
    transition: all 0.3s ease;
    line-height: 1;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-body pre:hover .copy-btn,
.article-content pre:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-btn.copied {
    background: #10b981;
    border-color: #10b981;
    opacity: 1;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.article-nav-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.article-nav-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.article-nav-label {
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-nav-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.5;
}

.article-nav-title a {
    color: inherit;
    text-decoration: none;
}

.article-nav-title a:hover {
    color: var(--primary);
}

.article-nav-item.prev .article-nav-label {
    justify-content: flex-start;
}

.article-nav-item.next .article-nav-label {
    justify-content: flex-end;
}

.article-nav-item.next {
    text-align: right;
}

.article-tags {
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.article-tags span {
    color: var(--secondary);
    margin-right: 12px;
}

.article-tags a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    border-radius: 20px;
    color: var(--primary);
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.article-tags a:hover {
    background: var(--primary);
    color: white;
}

.video-container {
    position: relative;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    z-index: 1;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.video-container:hover .video-overlay {
    opacity: 0.7;
}

.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    padding-left: 8px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
    animation: playButtonPulse 2s ease-in-out infinite;
}

.video-container:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}

@keyframes playButtonPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 12px 40px rgba(102, 126, 234, 0.7); }
}

.video-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
    cursor: pointer;
}

.video-container.playing .video-blocker {
    display: none;
}

.download-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.download-btn i {
    font-size: 16px;
}

.related-posts {
    margin-bottom: 40px;
}

.related-posts h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-card h4 {
    padding: 16px;
    color: var(--dark);
    font-size: 15px;
}

.related-card a {
    color: inherit;
    text-decoration: none;
}

.comments-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border);
}

.comments-section h3 {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--dark);
}

.comment-form {
    margin-bottom: 40px;
}

.comment-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.comment-form-group {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    gap: 8px;
}

.comment-form-label {
    width: 60px;
    font-weight: 500;
    color: var(--dark-light);
    flex-shrink: 0;
}

.comment-form input,
.comment-form textarea {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
    color: var(--dark);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.comment-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 100px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.15);
}

.comment-submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.comment-list {
    list-style: none;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--dark);
}

.comment-time {
    color: var(--secondary);
    font-size: 13px;
}

.comment-text {
    color: var(--dark-light);
    line-height: 1.7;
}

.comment-actions {
    margin-top: 12px;
}

.reply-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.reply-btn:hover {
    background: var(--primary-light);
}

.comment-reply-form {
    margin-top: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    display: none;
}

.comment-reply-form.show {
    display: block;
}

.comment-reply-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: white;
    color: var(--dark);
    font-size: 14px;
    outline: none;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}

.comment-reply-form textarea:focus {
    border-color: var(--primary);
}

.reply-submit-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cancel-reply-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-reply-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.reply-submit-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reply-submit-btn:hover {
    background: var(--primary-dark);
}

.comment-replies {
    margin-top: 16px;
}

.comment-replies .comment-item {
    padding: 16px 0;
}

.reply-to {
    color: var(--primary);
    font-weight: 500;
}

.weiyu {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary);
}

.weiyu p {
    color: var(--dark-light);
    font-style: italic;
    margin-bottom: 10px;
}

.weiyu time {
    color: var(--secondary);
    font-size: 12px;
}

.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 10px;
}

.link-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-light);
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.link-list a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.link-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: var(--secondary);
    font-size: 14px;
    margin-top: 20px;
}
footer a { color: inherit; text-decoration: none; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-light);
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: scale(1.08);
    border: 2px solid rgba(102, 126, 234, 0.5);
}

.pagination .prev, .pagination .next {
    font-size: 12px;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .disabled:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark-light);
    border-color: var(--border);
    transform: none;
    box-shadow: none;
}

.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.pagination-wrapper > * {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.pagination-wrapper a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-light);
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pagination-wrapper a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pagination-wrapper a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.pagination-wrapper a:hover::before {
    opacity: 1;
}

.pagination-wrapper > span:not(em) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.2),
        0 0 0 8px rgba(102, 126, 234, 0.1),
        0 10px 30px rgba(102, 126, 234, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.4);
    position: relative;
    transform: scale(1.1);
    z-index: 10;
}

.pagination-wrapper > span:not(em)::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 22px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 300%;
    animation: gradient-rotate 3s ease infinite;
    filter: blur(8px);
    opacity: 0.6;
    z-index: -1;
}

.pagination-wrapper > span:not(em)::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.3)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

@keyframes gradient-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.pagination-wrapper a:first-child, 
.pagination-wrapper a:last-child {
    font-size: 13px;
    padding: 0 16px;
}

.pagination-wrapper a[href="#"] {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-wrapper a[href="#"]:hover {
    color: var(--dark-light);
    transform: none;
    box-shadow: none;
}

.pagination-wrapper a[href="#"]:hover::before {
    opacity: 0;
}

.pagination-wrapper em {
    color: var(--secondary);
    font-style: normal;
}

.comment-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.comment-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-light);
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.comment-pagination a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.35);
}

.comment-pagination span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border: 1.5px solid rgba(102, 126, 234, 0.6);
}

.comment-pagination a.prev, 
.comment-pagination a.next {
    font-size: 12px;
    padding: 0 12px;
}

.comment-pagination a.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.comment-pagination a.disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-light);
    border-color: rgba(0, 0, 0, 0.08);
    transform: none;
    box-shadow: none;
}

.qrcode-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.qrcode-content {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    max-width: 90%;
}

.qrcode-modal .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--secondary);
    transition: color 0.3s ease;
}

.qrcode-modal .close:hover {
    color: var(--dark);
}

.qrcode-image-container img {
    max-width: 250px;
    max-height: 250px;
    border-radius: 8px;
}

.qrcode-content p {
    margin-top: 15px;
    color: var(--dark-light);
    font-size: 16px;
}

@media (max-width: 1200px) {
    .post-grid {
        column-count: 2;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 20px;
    }
    
    .sidebar-wrapper {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .main-content {
        padding: 0;
    }
    
    .post-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .post-grid {
        column-count: 1;
        column-gap: 20px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-nav {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .post-grid {
        column-count: 1;
        column-gap: 15px;
    }
    
    .post-card {
        margin-bottom: 20px;
    }
    
    .post-content {
        padding: 16px;
    }
    
    .post-title {
        font-size: 18px;
    }
}

.twitter-list {
    width: 100%;
    word-break: break-all;
    overflow-wrap: break-word;
}

.twitter-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    transition: all 0.35s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.twitter-item:last-child {
    margin-bottom: 0;
}

.twitter-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.twitter-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.twitter-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.twitter-author-info {
    display: flex;
    flex-direction: column;
}

.twitter-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.twitter-content {
    position: relative;
}

.twitter-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
}

.twitter-content p {
    font-size: 14px;
    color: var(--dark-light);
    line-height: 1.7;
    word-break: break-all;
    overflow-wrap: break-word;
    margin: 0;
    padding-left: 14px;
}

.twitter-meta {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 10px;
    padding-left: 14px;
}

.password-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.password-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12), 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 450px;
    width: 100%;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.password-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.password-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.password-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    position: relative;
    z-index: 1;
}

.password-icon i {
    font-size: 42px;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.password-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.password-desc {
    font-size: 15px;
    color: var(--dark-light);
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.password-form {
    position: relative;
    z-index: 1;
}

.password-form .form-group {
    margin-bottom: 25px;
}

.password-form .input-wrapper {
    position: relative;
    background: rgba(241, 245, 249, 0.8);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.35s ease;
}

.password-form .input-wrapper:focus-within {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.password-form .input-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--secondary);
}

.password-input {
    width: 100%;
    padding: 20px 20px 20px 55px;
    font-size: 16px;
    border: none;
    background: transparent;
    outline: none;
    color: var(--dark);
}

.password-input::placeholder {
    color: var(--secondary);
}

.password-btn {
    width: 100%;
    padding: 20px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.35s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.45);
}

.password-btn:active {
    transform: translateY(0);
}

.password-btn i {
    font-size: 18px;
}

.user-page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    position: relative;
    margin-bottom: 40px;
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

.profile-info {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    margin-top: -80px;
    position: relative;
    padding: 0 20px;
}

.avatar-wrapper {
    position: relative;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #667eea, #764ba2) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ring-rotate 8s linear infinite;
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-details {
    flex: 1;
    padding-bottom: 10px;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 15px;
    color: var(--dark-light);
    margin-bottom: 15px;
}

.profile-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--secondary);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.user-content {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.content-tabs {
    display: flex;
    gap: 10px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.tab {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.tab:hover {
    color: var(--dark);
    background: var(--light);
}

.tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
}

.article-count {
    font-size: 14px;
    color: var(--secondary);
    padding: 6px 16px;
    background: var(--light);
    border-radius: 20px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    transition: all 0.35s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.2);
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.category-badge a {
    color: white !important;
    text-decoration: none !important;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    font-size: 14px;
    color: var(--dark-light);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--secondary);
}

.card-meta i {
    margin-right: 6px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 56px;
    color: var(--secondary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--secondary);
}

@media (max-width: 768px) {
    .password-card {
        padding: 40px 30px;
    }
    
    .profile-info {
        flex-direction: column;
        align-items: flex-start;
        margin-top: -60px;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
    
    .profile-name {
        font-size: 26px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
