.note-header {
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.search-container {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

#tag-search {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(63, 60, 60, 0.529);
    border-radius: 6px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

#search-btn {
    padding: 8px 16px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

#search-btn:hover {
    background: #2a405d;
}

.note-container {
    max-width: 600px;   /* 原为750px，缩小容器宽度 */
    min-width: 200px;   /* 可适当缩小 */
    width: 88%;         /* 原为92%，缩小整体宽度 */
    margin: 0 auto;
    padding: 12px;      /* 原为16px，缩小内边距 */
    overflow: hidden;
}
/* 针对Webkit浏览器隐藏滚动条 */
body::-webkit-scrollbar {
    display: none;
}

.notecard {
    background: #2b3038;
    border-radius: 12px;
    padding: 12px;      /* 原为16px，缩小卡片内边距 */
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    overflow: hidden;
}

.notecard-description {
    font-size: 14px;
    color: #e0e0e0;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.notecard-description img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border-radius: 6px;
}

/* 媒体容器样式 */
.note-container .video-wrapper,
.note-container .music-wrapper,
.note-container .spotify-wrapper {
    max-width: 100%;
    margin: 6px 0;
}

.notecard:hover {
    transform: translateY(-2px);
}

.notecard-title {
    font-size: 16px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 8px 0;
    font-weight: bold;
}
/* 添加图片自适应样式 */
.notecard-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}
/* 优化代码块样式 */
.notecard-description pre {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 10px 0;
}

.notecard-description code {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: #d4d4d4;
    background: #1e1e1e;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 行内代码样式 */
.notecard-description p code {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

/* 优化遮罩渐变效果 */
.content-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    
    pointer-events: none;
    display: none;
}

/* 优化展开按钮样式 */
.expand-btn {
    position: relative;
    z-index: 2;
    margin: -40px auto 0;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #e0e0e0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
    width: fit-content;
}

.expand-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tag {  
    color: rgb(120, 118, 226); /* 文本橙色 */   
    cursor: pointer;
  }
  

.back-to-list, .load-more {
    background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    color: #eb761c;
    font-size: 14px;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    transition: all 0.3s ease;
}

.back-to-list:hover, .load-more:hover {
    background: linear-gradient(145deg, #e6e6e6, #f0f0f0);
    color: #ff8c00;
    transform: translateY(-2px);
}

.back-to-list:active, .load-more:active {
    transform: translateY(1px);
}

.load-more:hover {
    background: linear-gradient(145deg, #e6e6e6, #f0f0f0);
    color: #333;
    transform: translateY(-2px);
 
}

.load-more:active {
    transform: translateY(1px);
  
}

.loaded-all {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 14px;
}

.loading-wrapper {
    text-align: center;
    color: #e0e0e0;
    padding: 20px;
}

@media (max-width: 768px) {
    .note-container {
        width: 96%;
        padding: 8px;   /* 原为12px，移动端进一步缩小 */
    }
    
    .notecard {
        padding: 8px;   /* 原为12px，移动端进一步缩小 */
    }
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    margin: 10px 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.music-wrapper {
    margin: 10px 0;
}

.spotify-wrapper {
    margin: 10px 0;
}

.notecard-description a {
    color: #ffa500; /* 橙色链接 */
    text-decoration: none;
    transition: color 0.2s;
}

.notecard-description a:hover {
    color: #ff8c00; /* 悬停时更深的橙色 */
    text-decoration: underline;
}

.notecard-title .fas {
    margin-left: 4px;
    color: #1a73e8;
    font-size: 0.9em;
}

.note-footer {
    border-top: 1px solid #413f3f;
    padding-top: 10px;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-button {
    cursor: pointer;
    color: #666;
}

.comment-button:hover {
    color: #1e90ff;
}

.comment-box {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.post-time {
    color: #666;
    font-size: 0.9em;
}

.source-link {
    color: #1e8fffb0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.source-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.zoom-image {
    cursor: zoom-in;
    transition: transform 0.3s ease-in-out;
}

.zoom-image:hover {
    transform: scale(1.02);
}

.medium-zoom-overlay {
    z-index: 999;
}

.medium-zoom-image--opened {
    z-index: 1000;
}
.github-card {
    border: 1px solid #30363d;
    border-radius: 8px;
    background: #161b22;
    color: #c9d1d9;
    margin: 1em 0;
    padding: 16px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 15px;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}
.github-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.github-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 0;
    object-fit: cover;
    background: #222;
}
.github-card-header > div {
    flex: 1 1 0%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.github-card-title {
    font-weight: bold;
    color: #58a6ff;
    text-decoration: none;
    font-size: 17px;
    word-break: break-all;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.github-card-desc {
    color: #8b949e;
    margin-top: 4px;
    font-size: 14px;
    word-break: break-all;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.github-card-footer {
    margin-top: 12px;
    display: flex;
    gap: 16px;
    color: #8b949e;
    font-size: 13px;
    flex-wrap: wrap;
}
.github-card-loading {
    color: #8b949e;
    font-style: italic;
}
@media (max-width: 520px) {
    .github-card {
        padding: 10px;
        font-size: 14px;
    }
    .github-card-avatar {
        width: 36px;
        height: 36px;
    }
    .github-card-title {
        font-size: 15px;
    }
}
