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

body {
    font-family: "Source Han Sans CN", "思源黑体", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #4E5969;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    -webkit-overflow-scrolling: touch;
    touch-action: auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F2F4F7;
    background-image: var(--bg-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(4px);
    z-index: -2;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

body.bg-loaded::before {
    opacity: 1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: -1;
}

@media (max-width: 767px) {
    body::after {
        background: rgba(255, 255, 255, 0.6);
    }
}

header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    color: #1D2129;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 桌面版：顶部导航栏不隐藏 */
@media (min-width: 768px) {
    .header-container {
        transition: none;
    }
    
    .header-container.hide {
        transform: none;
    }
}

.logo {
    font-size: 18px;
    font-weight: 500;
    color: #1D2129;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #1D2129;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    display: flex;
    gap: 48px;
}

.nav-link {
    color: #4E5969;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    font-size: 18px;
}

.nav-link:hover {
    color: #1D2129;
}

.nav-link.active {
    color: #165DFF;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #165DFF;
    border-radius: 1px;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.nav-link.active::after {
    width: 40px;
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out, transform 0.3s ease-out;
}

@media (max-width: 767px) {
    .header-container {
        padding: 10px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -250px;
        width: 250px;
        height: calc(100vh - 60px);
        background: #FBFCFC;
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        transition: left 0.3s ease;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.06);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 16px 24px;
        border-bottom: 1px solid #E5E6EB;
        font-size: 18px;
    }
    
    .nav-link.active {
        background: #F2F4F7;
        color: #165DFF;
        transition: background 0.3s ease, color 0.3s ease;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link {
        transition: background 0.3s ease, color 0.3s ease;
    }
    
    /* 手机端顶部导航栏滚动隐藏效果 */
    header, .header-container {
        transition: transform 0.3s ease-out;
    }
    
    header.hide {
        transform: translateY(-100%);
    }
    
    .header-container.hide {
        transform: translateY(-100%);
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .overlay.hide {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
    }
    
    .overlay.active.hide {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
    }
}

#content {
    flex: 1;
    margin-top: 60px;
    padding: 16px;
    max-width: 100%;
    width: 100%;
    min-height: calc(100vh - 60px);
}

footer {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    color: #4E5969;
    text-align: center;
    padding: 16px;
}

.page-home {
    padding: 0;
    max-width: 80%;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
}

.page-project-list {
    padding: 0;
    max-width: 80%;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
}

.page-log-list {
    padding: 0;
    max-width: 80%;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
}

.page-project-detail {
    padding: 32px 0;
    min-height: calc(100vh - 60px);
}

.page-log-detail {
    padding: 32px 0;
    min-height: calc(100vh - 60px);
}

.page-home h1,
.page-project-list h1,
.page-log-list h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1D2129;
}

.page-home p {
    font-size: 1.1rem;
    color: #4E5969;
    margin-bottom: 2rem;
}

.features {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.features h2 {
    margin-bottom: 16px;
    color: #1D2129;
}

.features ul {
    list-style-position: inside;
}

.features li {
    margin-bottom: 8px;
    padding: 8px 0;
}

.quick-links {
    margin-bottom: 32px;
}

.quick-links h2 {
    margin-bottom: 16px;
    color: #1D2129;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.quick-link-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #4E5969;
    transition: transform 0.3s, box-shadow 0.3s;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quick-link-card h3 {
    margin-bottom: 8px;
    color: #1D2129;
}

.quick-link-card p {
    color: #4E5969;
    margin: 0;
}

.stats {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stats h2 {
    margin-bottom: 24px;
    color: #1D2129;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-grid-full {
    grid-template-columns: 1fr;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    #content {
        padding: 6px;
    }
    
    .page-home,
    .page-project-list,
    .page-log-list {
        max-width: 98%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .project-detail-page,
    .log-detail-page {
        max-width: 98%;
        margin-left: auto;
        margin-right: auto;
        padding: 0 1%;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        padding: 16px;
    }
    
    .stat-item {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 2rem;
        min-height: 3rem;
        line-height: 3rem;
    }
    
    .uptime-display {
        gap: 2px;
        justify-content: center;
    }
    
    .time-digit-group {
        gap: 0;
    }
    
    .time-digit-container {
        width: 26px;
        height: 42px;
    }
    
    .time-digit {
        line-height: 42px;
        font-size: 1.8rem;
        font-weight: bold;
    }
    
    .time-label {
        font-size: 0.8rem;
    }
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 0.5rem;
    min-height: 3.5rem;
    line-height: 3.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.project-list, .log-list {
    display: grid;
    gap: 24px;
}

.project-list {
    grid-template-columns: repeat(2, 1fr);
}

.log-list {
    grid-template-columns: repeat(2, 1fr);
}

.project-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    gap: 12px;
    overflow: hidden;
    cursor: pointer;
}

.project-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-item-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}

.project-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    border-radius: 12px;
}

.project-item-image img.loaded {
    opacity: 1;
}

.project-item-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-item-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-item-header h2 {
    margin: 0;
    color: #1D2129;
    font-size: 1.5rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.project-item-header small {
    margin: 0;
    color: #86909C;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.project-item p {
    color: #4E5969;
    margin: 0;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 1rem;
    text-align: left;
}

.log-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    gap: 12px;
    overflow: hidden;
    cursor: pointer;
}

.log-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.log-item-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}

.log-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    border-radius: 12px;
}

.log-item-image img.loaded {
    opacity: 1;
}

.log-item-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-item-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-item-header h2 {
    margin: 0;
    color: #1D2129;
    font-size: 1.5rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.log-item-header small {
    margin: 0;
    color: #86909C;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
}

.log-item p {
    color: #4E5969;
    margin: 0;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 1rem;
    text-align: left;
}

.project-detail, .log-detail {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.project-detail a, .log-detail a {
    display: inline-block;
    margin-top: 1rem;
    color: #3498db;
    text-decoration: none;
}

.project-detail a:hover, .log-detail a:hover {
    text-decoration: underline;
}

.project-info, .project-features, .project-tech, .project-status, .project-links,
.log-meta, .log-content, .log-links {
    margin-bottom: 32px;
}

.project-info h2, .project-features h2, .project-tech h2, .project-status h2, .project-links h2,
.log-meta h2, .log-content h2, .log-links h2 {
    margin-bottom: 16px;
    color: #1D2129;
    font-size: 1.5rem;
}

.project-features ul, .log-content ul {
    list-style-position: inside;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.project-features li, .log-content li {
    margin-bottom: 0;
    padding: 8px 12px;
    color: #4E5969;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #E8F3FF;
    color: #165DFF;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.project-status p {
    margin-bottom: 8px;
    color: #4E5969;
}

.log-meta p {
    margin-bottom: 8px;
    color: #4E5969;
}

.log-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: #4E5969;
}

.log-content h2 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.3rem;
    color: #1D2129;
}

.log-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.log-content table th,
.log-content table td {
    padding: 12px 16px;
    border: 1px solid #E5E6EB;
    text-align: left;
    white-space: nowrap;
    min-width: 120px;
}

.log-content table th {
    background: #F5F7FA;
    font-weight: 600;
    color: #1D2129;
}

.log-content table td {
    color: #4E5969;
}

.log-content ul,
.log-content ol {
    margin: 0 0 16px 0;
    padding-left: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.log-content ul li,
.log-content ol li {
    margin-bottom: 0;
    padding: 8px 12px;
    color: #4E5969;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.project-links, .log-links {
    padding-top: 16px;
    border-top: 1px solid #E5E6EB;
}

.project-detail-page {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0;
}

.project-detail-container {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
}

.project-left-sidebar {
    width: 20%;
    flex-shrink: 0;
}

.project-main {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.back-link {
    margin-top: auto;
    padding: 16px 24px;
    text-align: right;
}

.markdown-content {
    padding: 0 32px 24px 32px;
    flex: 1;
}

/* 移动端：调小 markdown 内容区左右内边距 */
@media (max-width: 767px) {
    .markdown-content {
        padding: 12px 16px 12px 16px;
    }
}

.back-link a {
    color: #165DFF;
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-link a:hover {
    color: #165DFF;
    text-decoration: underline;
}

/* 移动端：调小 back-link 区域边距 */
@media (max-width: 767px) {
    .back-link {
        margin: 12px 0 12px 0;
        padding: 8px 16px;
        text-align: right;
    }
}

.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 20%;
    flex-shrink: 0;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.update-records-card {
    max-height: 400px;
    overflow-y: auto;
}

.update-records-card::-webkit-scrollbar {
    width: 4px;
}

.update-records-card::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.update-records-card::-webkit-scrollbar-thumb {
    background: #E5E6EB;
    border-radius: 2px;
}

.update-records-card::-webkit-scrollbar-thumb:hover {
    background: #C9CDD4;
}

.project-cover {
    margin-bottom: 16px;
}

.project-cover img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.project-cover img.loaded {
    opacity: 1;
}

.project-info-card h2 {
    margin-bottom: 8px;
    color: #1D2129;
    font-size: 1.3rem;
}

.project-desc {
    color: #4E5969;
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    background: #165DFF;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s;
}

.project-link:hover {
    background: #0E42D2;
    text-decoration: none;
}

.update-records-card h3 {
    margin-bottom: 16px;
    color: #1D2129;
    font-size: 1.1rem;
}

.update-records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.update-record {
    background: #F7F8FA;
    padding: 12px;
    border-radius: 10px;
    border-left: 3px solid #165DFF;
}

.update-time {
    display: block;
    font-size: 0.85rem;
    color: #86909C;
    margin-bottom: 4px;
}

.update-content {
    color: #4E5969;
    line-height: 1.5;
}

.log-detail-page {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0;
}

.log-detail-container {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
}

.log-main {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.log-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 20%;
    flex-shrink: 0;
}

.log-info-card .log-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 16px;
}

.log-info-card .log-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.log-info-card .log-cover img.loaded {
    opacity: 1;
}

.log-info-card h2 {
    margin-bottom: 12px;
    color: #1D2129;
    font-size: 1.3rem;
}

.log-info-card .log-desc {
    margin-bottom: 16px;
    color: #4E5969;
    font-size: 0.95rem;
    line-height: 1.6;
}

.log-info-card .log-time {
    color: #86909C;
    font-size: 0.85rem;
}

.log-header {
    margin-bottom: 32px;
    padding: 32px 32px 16px 32px;
    border-bottom: 2px solid #E5E6EB;
}

.log-main .markdown-content {
    padding: 0 32px 24px 32px;
    flex: 1;
}

.log-main .back-link {
    margin-top: auto;
    padding: 16px 24px;
    text-align: right;
}

.log-header h1 {
    margin-bottom: 8px;
    color: #1D2129;
}

.log-desc {
    color: #4E5969;
    font-size: 1.1rem;
}

.markdown-content {
    color: #333;
    line-height: 1.8;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 24px;
    margin-bottom: 8px;
    color: #1D2129;
    font-weight: 600;
}

.markdown-content h1 {
    font-size: 2em;
    border-bottom: 2px solid #E5E6EB;
    padding-bottom: 12px;
}

.markdown-content h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #E5E6EB;
    padding-bottom: 12px;
}

.markdown-content h3 {
    font-size: 1.25em;
}

.markdown-content h4 {
    font-size: 1.1em;
}

.markdown-content h5 {
    font-size: 1em;
}

.markdown-content h6 {
    font-size: 0.9em;
    color: #86909C;
}

.markdown-content p {
    margin-bottom: 16px;
    color: #4E5969;
}

.markdown-content a {
    color: #165DFF;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 16px;
    padding-left: 32px;
}

.markdown-content li {
    margin-bottom: 8px;
    color: #4E5969;
}

.markdown-content ul {
    list-style-type: disc;
}

.markdown-content ol {
    list-style-type: decimal;
}

.markdown-content blockquote {
    margin: 16px 0;
    padding: 8px 16px;
    border-left: 4px solid #165DFF;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: #4E5969;
}

.markdown-content code {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 4px 8px;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #1D2129;
}

.markdown-content pre {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    color: #1D2129;
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 16px;
}

.markdown-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #E5E6EB;
    padding: 8px 16px;
    text-align: left;
}

.markdown-content th {
    background: #F7F8FA;
    font-weight: 600;
    color: #1D2129;
}

.markdown-content tr:nth-child(even) {
    background: #F7F8FA;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 16px 0;
}

.markdown-content hr {
    border: none;
    border-top: 2px solid #E5E6EB;
    margin: 32px 0;
}

@media (max-width: 767px) {
    .project-list, .log-list {
        grid-template-columns: 1fr;
    }
    
    .project-item, .log-item {
        flex-direction: row;
    }
    
    .project-item-image, .log-item-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
    
    .project-item-content, .log-item-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .project-item-header, .log-item-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    
    .project-item-header h2, .log-item-header h2 {
        margin: 0;
        font-size: 1.1rem;
        flex: 1;
    }
    
    .project-item-header small, .log-item-header small {
        margin: 0;
        font-size: 0.8rem;
        color: #86909C;
        white-space: nowrap;
    }
    
    .project-item-content p, .log-item-content p {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.5;
        color: #4E5969;
    }
    
    .project-detail-page, .log-detail-page {
        padding: 0 16px;
    }
    
    .project-detail-container, .log-detail-container {
        flex-direction: column;
        gap: 24px;
        max-width: 100%;
    }
    
    .project-sidebar {
        width: 100%;
        order: 1;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .log-sidebar {
        display: none;
    }
    
    .project-info-card, .log-info-card {
        order: 1;
        display: flex;
        flex-direction: row;
        gap: 12px;
    }
    
    .project-cover, .log-cover {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .project-info-content, .log-info-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .project-info-header, .log-info-header {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .project-info-header h2, .log-info-header h2 {
        margin: 0;
        font-size: 1.1rem;
    }
    
    .log-info-header small {
        margin: 0;
        font-size: 0.8rem;
        color: #86909C;
    }
    
    .project-info-card .project-desc, .log-info-card .log-desc {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .project-info-card .project-link {
        margin-top: auto;
        width: 100%;
        text-align: center;
        white-space: normal;
        padding: 10px 16px;
    }
    
    .update-records-card {
        order: 2;
        max-height: none;
        overflow-y: visible;
    }
}

/* 手机版滑动体验优化 */
@media (max-width: 767px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .project-item,
    .log-item,
    .nav-link,
    .btn,
    .menu-item,
    .sidebar-card,
    .stat-item,
    .project-detail-container,
    .log-detail-container,
    .project-info-card,
    .log-info-card,
    .update-record-item,
    .backup-record-item {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .project-list,
    .log-list,
    .project-sidebar,
    .log-sidebar,
    .project-detail-page,
    .log-detail-page,
    .stats,
    .uptime-display,
    .update-records-card,
    .backup-records-list {
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }
    
    .project-item,
    .log-item {
        touch-action: manipulation;
        padding: 10px;
        gap: 8px;
    }
    
    .project-item-image,
    .log-item-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        border-radius: 6px;
    }
    
    .project-item-image img,
    .log-item-image img {
        border-radius: 6px;
    }
    
    .project-item-content,
    .log-item-content {
        gap: 0;
        padding: 6px 0;
    }
    
    .project-item .project-item-content p,
    .log-item .log-item-content p {
        margin: 0;
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .project-item-header,
    .log-item-header {
        gap: 3px;
    }
    
    .project-item-header h2,
    .log-item-header h2 {
        margin: 0;
    }
    
    .project-item .project-item-header p,
    .log-item .log-item-header p {
        margin: 0;
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .project-item-title,
    .log-item-title {
        font-size: 0.95rem;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
    }
    
    .project-item-desc,
    .log-item-desc {
        font-size: 0.8rem;
        line-height: 1.4;
        text-align: left;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .project-item-meta,
    .log-item-meta {
        font-size: 0.7rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    .nav-link {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .menu-item {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .sidebar-card {
        padding: 12px;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .project-detail-page,
    .log-detail-page {
        padding: 0 2px;
    }
    
    .project-detail-container,
    .log-detail-container {
        gap: 6px;
    }
    
    .project-detail-header h2,
    .log-detail-header h2 {
        font-size: 1.1rem;
    }
    
    .project-detail-desc,
    .log-detail-desc {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .project-detail-desc table,
    .log-detail-desc table {
        margin-bottom: 10px;
    }
    
    .project-detail-desc table th,
    .project-detail-desc table td,
    .log-detail-desc table th,
    .log-detail-desc table td {
        padding: 8px 10px;
        min-width: 80px;
    }
    
    .project-features li,
    .log-content li {
        padding: 2px 8px;
        font-size: 0.75rem;
        min-width: 0;
    }
    
    .project-features ul,
    .log-content ul {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 8px;
    }
    
    .log-content p {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .log-content h2 {
        font-size: 0.95rem;
        margin-top: 12px;
        margin-bottom: 6px;
    }
    
    .tech-tag {
        padding: 2px 6px;
        font-size: 0.65rem;
    }
    
    .project-info-card,
    .log-info-card {
        padding: 8px;
    }
    
    .update-records-card {
        max-height: 180px;
    }
    
    .backup-records-list {
        max-height: 180px;
    }
    
    .uptime-display {
        gap: 0;
    }
    
    .time-digit-group {
        gap: 0;
    }
    
    .time-digit-container {
        position: relative;
        width: 18px;
        height: 42px;
        overflow: hidden;
    }
    
    .time-digit {
        line-height: 42px;
        font-size: 1.6rem;
    }
    
    .time-label {
        font-size: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
        min-height: 2.3rem;
        line-height: 2.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .features {
        padding: 8px;
    }
    
    .page-home h1,
    .page-project-list h1,
    .page-log-list h1 {
        font-size: 1.4rem;
    }
    
    .page-home p,
    .page-project-list p,
    .page-log-list p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .stats {
        padding: 8px;
    }
    
    .stat-grid {
        gap: 4px;
    }
    
    .project-detail-page,
    .log-detail-page {
        padding: 0px 0px 0px 0px;
    }
    
    .project-detail-container,
    .log-detail-container {
        gap: 0px;
    }
    
    .project-detail-header,
    .log-detail-header {
        padding: 12px 0;
    }
    
    .project-detail-header h2,
    .log-detail-header h2 {
        font-size: 1.2rem;
    }
    
    .project-detail-desc,
    .log-detail-desc {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .project-detail-desc table,
    .log-detail-desc table {
        margin-bottom: 10px;
    }
    
    .project-detail-desc table th,
    .project-detail-desc table td,
    .log-detail-desc table th,
    .log-detail-desc table td {
        padding: 8px 10px;
        min-width: 80px;
    }
    
    .project-meta,
    .log-meta {
        gap: 6px;
    }
    
    .project-meta p,
    .log-meta p {
        font-size: 0.75rem;
    }
    
    .project-status p,
    .log-meta p {
        font-size: 0.8rem;
    }
    
    .project-links,
    .log-links {
        padding-top: 10px;
    }
    
    .update-records-header,
    .backup-records-header {
        padding: 10px 0;
    }
    
    .update-records-title,
    .backup-records-title {
        font-size: 0.9rem;
    }
    
    .update-record-item,
    .backup-record-item {
        padding: 10px;
    }
    
    .update-record-time,
    .backup-record-time {
        font-size: 0.75rem;
    }
    
    .update-record-content,
    .backup-record-content {
        font-size: 0.85rem;
    }
    
    .backup-record-version {
        font-size: 0.85rem;
    }
    
    .backup-record-files-title {
        font-size: 0.8rem;
    }
    
    .file-name {
        font-size: 0.8rem;
    }
    
    .file-size {
        font-size: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
    
    .action-buttons {
        gap: 4px;
    }
    
    .action-buttons .btn-sm {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .sort-controls {
        padding: 8px 0;
    }
    
    .sort-controls .btn-sm {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .restart-container {
        padding: 16px;
    }
    
    .restart-info {
        padding: 12px;
    }
    
    .restart-info p {
        font-size: 0.9rem;
    }
    
    .restart-info ul {
        padding-left: 16px;
        font-size: 0.85rem;
    }
    
    .restart-info li {
        margin-bottom: 6px;
        font-size: 0.85rem;
    }
    
    .restart-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .status-message {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    .image-upload-info {
        font-size: 0.8rem;
    }
    
    .required {
        font-size: 0.8rem;
    }
    
    .modal {
        width: 90%;
        max-width: 400px;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
    }
    
    .modal-footer .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .modal-confirm {
        width: 85%;
        max-width: 350px;
    }
    
    .modal-confirm .modal-body {
        padding: 14px;
    }
    
    .modal-confirm .modal-body p {
        font-size: 1rem;
    }
    
    .modal-confirm .modal-footer {
        padding: 10px 14px;
    }
    
    .modal-confirm .modal-footer .btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .rollback-modal {
        width: 90%;
        max-width: 450px;
    }
    
    .rollback-modal .modal-body {
        padding: 16px;
    }
    
    .rollback-modal .form-group {
        margin-bottom: 10px;
    }
    
    .rollback-modal .form-group input {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .rollback-modal .backup-records-header {
        padding: 10px 0;
    }
    
    .rollback-modal .backup-records-title {
        font-size: 0.95rem;
    }
    
    .rollback-modal .backup-record-item {
        padding: 10px;
    }
    
    .rollback-modal .backup-record-header {
        gap: 6px;
    }
    
    .rollback-modal .backup-record-version {
        font-size: 0.85rem;
    }
    
    .rollback-modal .backup-record-time {
        font-size: 0.75rem;
    }
    
    .rollback-modal .backup-record-files-title {
        font-size: 0.8rem;
    }
    
    .rollback-modal .file-name {
        font-size: 0.8rem;
    }
    
    .rollback-modal .file-size {
        font-size: 0.75rem;
    }
    
    .rollback-modal .modal-footer {
        padding: 10px 16px;
    }
    
    .rollback-modal .modal-footer .btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .update-toggle-btn,
    .backup-toggle-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .collapsed::before {
        content: '展开';
    }
    
    .expanded::before {
        content: '收起';
    }
    
    .project-detail-page,
    .log-detail-page {
        padding: 0;
    }
    
    .project-detail-container,
    .log-detail-container {
        gap: 10px;
    }
    
    .project-detail-header,
    .log-detail-header {
        padding: 12px 0;
    }
    
    .project-detail-header h2,
    .log-detail-header h2 {
        font-size: 1.3rem;
    }
    
    .project-detail-desc,
    .log-detail-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .project-meta,
    .log-meta {
        gap: 6px;
    }
    
    .project-meta p,
    .log-meta p {
        font-size: 0.8rem;
    }
    
    .project-status p,
    .log-meta p {
        font-size: 0.8rem;
    }
    
    .project-links,
    .log-links {
        padding-top: 10px;
    }
    
    .update-records-header,
    .backup-records-header {
        padding: 10px 0;
    }
    
    .update-records-title,
    .backup-records-title {
        font-size: 0.9rem;
    }
    
    .update-record-item,
    .backup-record-item {
        padding: 10px;
    }
    
    .update-record-time,
    .backup-record-time {
        font-size: 0.75rem;
    }
    
    .update-record-content,
    .backup-record-content {
        font-size: 0.85rem;
    }
    
    .backup-record-version {
        font-size: 0.85rem;
    }
    
    .backup-record-files-title {
        font-size: 0.8rem;
    }
    
    .file-name {
        font-size: 0.8rem;
    }
    
    .file-size {
        font-size: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .action-buttons {
        gap: 3px;
    }
    
    .action-buttons .btn-sm {
        padding: 3px 6px;
        font-size: 0.7rem;
    }
    
    .sort-controls {
        padding: 6px 0;
    }
    
    .sort-controls .btn-sm {
        padding: 3px 6px;
        font-size: 0.75rem;
    }
    
    .restart-container {
        padding: 12px;
    }
    
    .restart-info {
        padding: 10px;
    }
    
    .restart-info p {
        font-size: 0.85rem;
    }
    
    .restart-info ul {
        padding-left: 14px;
        font-size: 0.8rem;
    }
    
    .restart-info li {
        margin-bottom: 5px;
        font-size: 0.8rem;
    }
    
    .restart-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .status-message {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .form-group textarea {
        min-height: 70px;
    }
    
    .image-upload-info {
        font-size: 0.75rem;
    }
    
    .required {
        font-size: 0.75rem;
    }
    
    .modal {
        width: 85%;
        max-width: 380px;
    }
    
    .modal-header {
        padding: 14px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 14px;
    }
    
    .modal-footer {
        padding: 10px 14px;
    }
    
    .modal-footer .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .modal-confirm {
        width: 80%;
        max-width: 320px;
    }
    
    .modal-confirm .modal-body {
        padding: 12px;
    }
    
    .modal-confirm .modal-body p {
        font-size: 0.9rem;
    }
    
    .modal-confirm .modal-footer {
        padding: 8px 12px;
    }
    
    .modal-confirm .modal-footer .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .rollback-modal {
        width: 85%;
        max-width: 400px;
    }
    
    .rollback-modal .modal-body {
        padding: 14px;
    }
    
    .rollback-modal .form-group {
        margin-bottom: 8px;
    }
    
    .rollback-modal .form-group input {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .rollback-modal .backup-records-header {
        padding: 8px 0;
    }
    
    .rollback-modal .backup-records-title {
        font-size: 0.9rem;
    }
    
    .rollback-modal .backup-record-item {
        padding: 8px;
    }
    
    .rollback-modal .backup-record-header {
        gap: 5px;
    }
    
    .rollback-modal .backup-record-version {
        font-size: 0.8rem;
    }
    
    .rollback-modal .backup-record-time {
        font-size: 0.7rem;
    }
    
    .rollback-modal .backup-record-files-title {
        font-size: 0.75rem;
    }
    
    .rollback-modal .file-name {
        font-size: 0.75rem;
    }
    
    .rollback-modal .file-size {
        font-size: 0.7rem;
    }
    
    .rollback-modal .modal-footer {
        padding: 8px 14px;
    }
    
    .rollback-modal .modal-footer .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .update-toggle-btn,
    .backup-toggle-btn {
        padding: 3px 6px;
        font-size: 0.75rem;
    }
    
    .collapsed::before {
        content: '展开';
    }
    
    .expanded::before {
        content: '收起';
    }
}

#content {
    opacity: 0;
}

#content.float-up {
    animation: floatUp 0.4s ease-out forwards;
}

@keyframes floatUp {
    from {
        transform: translateY(8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 访问量更新过渡动画 */
.count-transition {
    transition: all 0.5s ease-in-out;
    display: block;
}

.count-transition:hover {
    transform: scale(1.1);
    color: #165DFF;
}

/* 加载动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.count-transition.loading {
    animation: pulse 1s infinite;
}

/* 网站运行时间动画 */
.uptime-transition {
    transition: all 0.3s ease-in-out;
    display: block;
}

.uptime-change {
    animation: uptimePulse 0.5s ease-in-out;
}

@keyframes uptimePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
        color: #165DFF;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.uptime-transition:hover {
    transform: scale(1.05);
    color: #165DFF;
}

/* 运行时间显示样式 */
.uptime-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
}

.time-digit-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.time-digit-container {
    position: relative;
    width: 16px;
    height: 42px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .time-digit-container {
        width: 26px;
        height: 56px;
    }
    
    .time-digit {
        line-height: 56px;
        font-size: 2.5rem;
    }
}

.time-digit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    font-weight: bold;
    color: #3498db;
    background: transparent;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.time-digit.old {
    transform: translateY(0);
}

.time-digit.new {
    transform: translateY(100%);
}

.time-digit.old.exit {
    transform: translateY(-100%);
}

.time-digit.new.enter {
    transform: translateY(0);
}

.time-label {
    font-size: 1rem;
    color: #666;
    white-space: nowrap;
    font-weight: 500;
}

