:root {
    --primary-color: #ff6b35; /* 渐变及图标起始颜色 */
    --secondary-color: #6610f2; /* 渐变终止颜色 */
    --text-primary: #333;
    --text-secondary: #6c757d; 
    --bg-light: #f8f9fa;
    --bg-white: white;
    --border-color: #e9ecef;
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 15px rgba(0, 123, 255, 0.3);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --gradient-hover: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #e0e0e0;
        --text-secondary: #b0b0b0;
        --bg-light: #333;
        --bg-white: #2a2a2a;
        --border-color: rgba(255, 255, 255, 0.1);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #f5f7fa;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    position: relative;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        background-image: none;
    }
}

#top_nav, #header, #main, #rightmenu, #footer,
.topicListFooter, .date, .post, .newsItem, #blog-calendar,
#blog_stats_place_holder, #sidebar_news, #blog-sidecolumn,
#Header1_HeaderTitle, #tagline,
.navbar, .sidebar, .footer, .header {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.custom-page-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 9999;
}

.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    background: radial-gradient(circle at 20% 30%, rgba(0, 123, 255, 0.5) 0%, transparent 50%), 
                radial-gradient(circle at 80% 70%, rgba(102, 16, 242, 0.5) 0%, transparent 50%);
    animation: moveBg 20s ease-in-out infinite;
}

@keyframes moveBg {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.custom-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

@media (prefers-color-scheme: dark) {
    .custom-navbar {
        background: rgba(30, 30, 30, 0.95);
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
}

.custom-navbar-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.custom-navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.custom-navbar-brand:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.custom-navbar-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: nowrap;
}

.custom-navbar-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 5px;
    white-space: nowrap;
}

.custom-navbar-links a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 123, 255, 0.1);
    transform: translateY(-2px);
}

@media (prefers-color-scheme: dark) {
    .custom-navbar-links a:hover {
        background-color: rgba(0, 123, 255, 0.2);
    }
}

.custom-search {
    position: relative;
    flex-shrink: 0;
}

.custom-search input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: var(--transition);
    width: 200px;
    font-size: 0.9rem;
    background: var(--bg-white);
    color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
    .custom-search input {
        background: #333;
        border-color: #555;
    }
}

.custom-search input:focus {
    width: 250px;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25); 
}

.custom-search button {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    transition: var(--transition);
}

.custom-search button:hover {
    color: var(--primary-color);
}

.custom-header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

.custom-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.custom-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.custom-header h1:hover::after {
    width: 150px;
}

.custom-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.custom-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.custom-content {
    animation: fadeIn 0.5s ease-out forwards;
}

.custom-announcement {
    background: linear-gradient(135deg, #667eea 0%, #a2674b 100%); /* 公告渐变背景 */
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.5s ease-out forwards;
}

.custom-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url();
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.custom-announcement-content {
    position: relative;
    z-index: 1;
}

.custom-announcement h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.custom-announcement p {
    margin: 0;
    line-height: 1.6;
}

.card-base {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.5s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.card-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.personal-info-card {
    text-align: center;
    padding: 20px;
}

.personal-info-card::before {
    height: 5px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
    transition: var(--transition);
    object-fit: cover;
}

.avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.personal-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.personal-info .follow-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent-color);
    text-decoration: none;
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    transition: var(--transition);
    margin-bottom: 15px;
}

.personal-info .follow-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.personal-info p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a,
.social-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    color: var(--text-primary);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 18px;
    border: none;
    cursor: pointer;
}

.social-links a:hover,
.social-links button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-links a.github:hover { background: #333; color: white; }
.social-links a.csdn:hover { background: #ff6c00; color: white; }
.social-links a.zhihu:hover { background: #0084ff; color: white; }
.social-links a.wechat:hover { background: #07C160; color: white; }
.social-links button.wechat:hover { background: #07C160; color: white; }

.skill-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.skill-tag {
    padding: 5px 15px;
    background: var(--bg-light);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.content-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 50px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card h3 i {
    color: var(--primary-color);
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.category-item {
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-primary);
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.category-item i {
    font-size: 0.8rem;
}

.article-list {
    list-style: none;
    margin-top: 10px;
}

.article-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f3f5;
}

.article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: block;
    margin-bottom: 5px;
}

.article-item a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    align-items: center;
}

.article-meta i {
    font-size: 0.75rem;
    margin-right: 5px;
}

.article-item {
    cursor: pointer;
}

.article-detail-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.back-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.back-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.back-button:hover::before {
    left: 100%;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.back-button:active {
    transform: translateY(0);
}

.article-detail-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.back-to-top-button {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.back-to-top-button:active {
    transform: translateY(-3px);
}

.article-detail-header h2 {
    margin: 15px 0;
    color: var(--text-primary);
    font-size: var(--font-size-3xl);
}

.article-detail-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    align-items: center;
    flex-wrap: wrap;
}

.article-detail-meta i {
    font-size: 0.85rem;
    margin-right: 5px;
}

.article-detail-content {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: var(--font-size-base);
}

.article-detail-content h1,
.article-detail-content h2,
.article-detail-content h3,
.article-detail-content h4,
.article-detail-content h5,
.article-detail-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.article-detail-content h1 {
    font-size: var(--font-size-3xl);
}

.article-detail-content h2 {
    font-size: var(--font-size-2xl);
}

.article-detail-content h3 {
    font-size: var(--font-size-xl);
}

.article-detail-content p {
    margin-bottom: 15px;
}

.article-detail-content pre {
    background: #1e1e1e !important;
    color: #d4d4d4 !important;
    padding: 16px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 20px 0;
    line-height: 1.6;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    border: 1px solid #3e3e3e;
}

.article-detail-content pre * {
    background: none !important;
}

.article-detail-content code {
    background: rgba(27, 31, 35, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    color: #e83e8c;
}

.article-detail-content pre code {
    background: none !important;
    padding: 0;
    color: #d4d4d4 !important;
}

.article-detail-content p > code,
.article-detail-content li > code {
    display: inline-block;
    vertical-align: middle;
}

.article-detail-content pre::-webkit-scrollbar {
    height: 10px;
}

.article-detail-content pre::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.article-detail-content pre::-webkit-scrollbar-thumb {
    background: #424242;
    border-radius: 5px;
}

.article-detail-content pre::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.article-detail-content pre .hljs {
    display: block;
    overflow-x: auto;
    padding: 0;
    background: transparent !important;
}

.article-detail-content pre .hljs-comment,
.article-detail-content pre .hljs-quote {
    color: #6a9955 !important;
    font-style: italic;
}

.article-detail-content pre .hljs-keyword,
.article-detail-content pre .hljs-selector-tag,
.article-detail-content pre .hljs-subst {
    color: #569cd6 !important;
}

.article-detail-content pre .hljs-number,
.article-detail-content pre .hljs-literal,
.article-detail-content pre .hljs-variable,
.article-detail-content pre .hljs-template-variable,
.article-detail-content pre .hljs-tag .hljs-attr {
    color: #b5cea8 !important;
}

.article-detail-content pre .hljs-string,
.article-detail-content pre .hljs-doctag {
    color: #ce9178 !important;
}

.article-detail-content pre .hljs-title,
.article-detail-content pre .hljs-section,
.article-detail-content pre .hljs-selector-id {
    color: #dcdcaa !important;
}

.article-detail-content pre .hljs-type,
.article-detail-content pre .hljs-class .hljs-title {
    color: #4ec9b0 !important;
}

.article-detail-content pre .hljs-tag,
.article-detail-content pre .hljs-name,
.article-detail-content pre .hljs-attribute {
    color: #569cd6 !important;
    font-weight: normal;
}

.article-detail-content pre .hljs-regexp,
.article-detail-content pre .hljs-link {
    color: #d16969 !important;
}

.article-detail-content pre .hljs-symbol,
.article-detail-content pre .hljs-bullet {
    color: #dcdcaa !important;
}

.article-detail-content pre .hljs-built_in,
.article-detail-content pre .hljs-builtin-name {
    color: #4ec9b0 !important;
}

.article-detail-content pre .hljs-meta {
    color: #9cdcfe !important;
}

.article-detail-content pre .hljs-deletion {
    background: #fdd;
}

.article-detail-content pre .hljs-addition {
    background: #dfd;
}

.article-detail-content pre .hljs-emphasis {
    font-style: italic;
}

.article-detail-content pre .hljs-strong {
    font-weight: bold;
}

.article-detail-content ul,
.article-detail-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-detail-content li {
    margin-bottom: 8px;
}

.article-detail-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin: 20px 0;
}

.article-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.article-detail-content th,
.article-detail-content td {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: left;
}

.article-detail-content th {
    background: var(--bg-light);
    font-weight: 600;
}

.article-detail-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-detail-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.loading-spinner p {
    font-size: 1rem;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dc3545;
}

.error-message p {
    font-size: 1rem;
}

.error-message a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.error-message a:hover {
    text-decoration: underline;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.project-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.project-tech span {
    font-size: 0.75rem;
    padding: 3px 10px;
    background: #e9ecef;
    color: #495057;
    border-radius: 12px;
}

.learning-plan {
    margin-top: 20px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.plan-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plan-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.plan-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.plan-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.tech-stack {
    margin-top: 25px;
}

.tech-category {
    margin-bottom: 30px;
}

.tech-category h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-category h4 i {
    color: var(--primary-color);
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tech-name {
    width: 120px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.tech-progress {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.tech-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease-in-out;
    position: relative;
}

.tech-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

.tech-level {
    width: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
}

.blog-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.stat-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-light);
    color: var(--text-primary);
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.tag-item:hover {
    background: var(--gradient-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.tag-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tag-item:hover::before {
    left: 100%;
}

.tag-name {
    font-weight: 500;
}

.tag-count {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.tag-item:hover .tag-count {
    background: rgba(255, 255, 255, 0.3);
}

.tag-item.size-1 { font-size: 0.85rem; }
.tag-item.size-2 { font-size: 0.9rem; }
.tag-item.size-3 { font-size: 0.95rem; }
.tag-item.size-4 { font-size: 1rem; }
.tag-item.size-5 { font-size: 1.1rem; }

.friend-links {
    margin-top: 20px;
}

.link-category {
    margin-bottom: 25px;
}

.link-category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-category h4 i {
    color: var(--primary-color);
}

.link-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: var(--bg-light);
    color: var(--text-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.link-item:hover {
    background: var(--gradient-hover);
    color: white;
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.link-item:hover::before {
    left: 100%;
}

.link-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.link-item:hover .link-icon {
    background: rgba(255, 255, 255, 0.3);
}

.link-content {
    flex: 1;
}

.link-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.link-desc {
    font-size: 0.85rem;
    opacity: 0.8;
}

.tools-grid,
.resources-grid,
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.tool-card,
.resource-card,
.achievement-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.tool-card:hover,
.resource-card:hover,
.achievement-card:hover {
    background: var(--gradient-hover);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.tool-card::before,
.resource-card::before,
.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tool-card:hover::before,
.resource-card:hover::before,
.achievement-card:hover::before {
    left: 100%;
}

.tool-icon,
.resource-icon,
.achievement-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tool-card:hover .tool-icon,
.resource-card:hover .resource-icon,
.achievement-card:hover .achievement-icon {
    background: rgba(255, 255, 255, 0.3);
}

.tool-content,
.resource-content,
.achievement-content {
    flex: 1;
}

.tool-content h4,
.resource-content h4,
.achievement-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.tool-content p,
.resource-content p,
.achievement-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
    opacity: 0.9;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-tags span {
    font-size: 0.8rem;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.tool-card:hover .tool-tags span {
    background: rgba(255, 255, 255, 0.3);
}

.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

.resource-type {
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.resource-author {
    opacity: 0.8;
}

.tool-card:hover .resource-type {
    background: rgba(255, 255, 255, 0.3);
}

.achievement-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

.custom-footer {
    background: #343a40;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 5px solid var(--primary-color);
}

@media (prefers-color-scheme: dark) {
    .custom-footer {
        background: #1a1a1a;
    }
}

.custom-footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

.custom-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.custom-footer .footer-copyright {
    margin-bottom: 10px;
    display: block;
}

.custom-footer .footer-icp {
    font-size: 0.9rem;
    color: #adb5bd;
}

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }
.content-card:nth-child(5) { animation-delay: 0.5s; }
.content-card:nth-child(6) { animation-delay: 0.6s; }

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

@media (max-width: 768px) {
    .custom-navbar-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .custom-navbar-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .custom-header h1 {
        font-size: 2rem;
    }
    
    .personal-info-card {
        padding: 15px;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .personal-info h3 {
        font-size: 1.2rem;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .card-base {
        padding: 20px;
    }
    
    .content-card h3 {
        font-size: 1.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .blog-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tech-name {
        width: 100px;
        font-size: 0.85rem;
    }
    
    .tech-progress {
        height: 6px;
    }
    
    .tech-level {
        width: 40px;
        font-size: 0.75rem;
    }
    
    .hot-tags {
        gap: 10px;
    }
    
    .tag-item {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .tools-grid,
    .resources-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tool-card,
    .resource-card,
    .achievement-card {
        padding: 15px;
    }
    
    .tool-icon,
    .resource-icon,
    .achievement-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .back-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .back-to-top-button {
        bottom: 30px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .tool-content h4,
    .resource-content h4,
    .achievement-content h4 {
        font-size: 1rem;
    }
    
    .tool-content p,
    .resource-content p,
    .achievement-content p {
        font-size: 0.85rem;
    }
    
    .link-item {
        padding: 10px 12px;
    }
    
    .link-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .link-name {
        font-size: 0.95rem;
    }
    
    .link-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .custom-header h1 {
        font-size: 1.5rem;
    }
    
    .custom-main {
        padding: 0 10px;
    }
    
    .card-base {
        padding: 15px;
    }
    
    .plan-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .blog-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .tech-category h4 {
        font-size: 1rem;
    }
    
    .tech-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tech-name {
        width: 100%;
        font-size: 0.9rem;
    }
    
    .tech-progress {
        width: 100%;
    }
    
    .tech-level {
        width: 100%;
        text-align: right;
    }
    
    .tag-item {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    .tag-count {
        font-size: 0.75rem;
    }
    
    .tool-card,
    .resource-card,
    .achievement-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .tool-icon,
    .resource-icon,
    .achievement-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .tool-content h4,
    .resource-content h4,
    .achievement-content h4 {
        font-size: 0.95rem;
    }
    
    .tool-content p,
    .resource-content p,
    .achievement-content p {
        font-size: 0.8rem;
    }
    
    .link-item {
        padding: 8px 10px;
    }
    
    .link-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .link-name {
        font-size: 0.9rem;
    }
    
    .link-desc {
        font-size: 0.75rem;
    }
    
    .back-button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .back-to-top-button {
        bottom: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

.article-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.comment-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.comment-action-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.comment-action-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}
