/* ========================================
   主样式文件
   ======================================== */

/* 全局深色主题 */
body {
    background: #1a2332;
    color: #e0e0e0;
    transition: background 0.3s, color 0.3s;
}

/* 浅色主题 */
body.light-mode {
    background: #f5f7fa;
    color: #333;
}

body.light-mode .site-header {
    background: #fff;
}

body.light-mode .site-branding .site-title,
body.light-mode .site-branding .site-title a {
    color: #333;
}

body.light-mode .search-form,
body.light-mode .theme-toggle {
    background: #f0f2f5;
}

body.light-mode .search-field {
    color: #333;
}

body.light-mode .search-field::placeholder {
    color: #999;
}

body.light-mode .trending-section,
body.light-mode .posts-section,
body.light-mode .single-article,
body.light-mode .related-posts,
body.light-mode .comments-area {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body.light-mode .section-title,
body.light-mode .entry-title,
body.light-mode .entry-title a,
body.light-mode .comments-title,
body.light-mode .comment-author,
body.light-mode .related-title a {
    color: #333;
}

body.light-mode .entry-content,
body.light-mode .comment-content {
    color: #555;
}

body.light-mode .entry-content h2,
body.light-mode .entry-content h3,
body.light-mode .entry-content h4,
body.light-mode .entry-content h5,
body.light-mode .entry-content h6 {
    color: #333;
}

body.light-mode .entry-content a {
    color: #0066cc;
}

body.light-mode .entry-content a:hover {
    color: #0052a3;
}

body.light-mode .tag-link,
body.light-mode .category-badge {
    background: #f0f2f5;
    color: #666;
}

body.light-mode .category-badge {
    background: #ff3333;
    color: #fff;
}

body.light-mode .tag-link:hover {
    background: #e0e0e0;
    color: #333;
}

body.light-mode .tags-label {
    color: #666;
}

body.light-mode .comment-content p,
body.light-mode .comment-content {
    color: #555;
}

body.light-mode .comment-metadata a {
    color: #999;
}

body.light-mode .comment-metadata a:hover {
    color: #333;
}

body.light-mode .comment-form label,
body.light-mode .comment-notes,
body.light-mode .logged-in-as,
body.light-mode .comment-form-cookies-consent label {
    color: #666;
}

body.light-mode .comment-form label a,
body.light-mode .logged-in-as a {
    color: #0066cc;
}

body.light-mode .comment-form label a:hover,
body.light-mode .logged-in-as a:hover {
    color: #0052a3;
}

body.light-mode .required {
    color: #ff3333;
}

body.light-mode .comment-reply-title {
    color: #333;
}

body.light-mode .post-card {
    border-bottom-color: rgba(0,0,0,0.05);
}

body.light-mode .post-card:hover {
    background: rgba(0,0,0,0.02);
}

body.light-mode .post-views-count {
    color: #999;
}

body.light-mode .post-date-time {
    color: #999;
}

body.light-mode .entry-meta,
body.light-mode .post-meta,
body.light-mode .related-meta,
body.light-mode .comment-metadata,
body.light-mode .search-submit,
body.light-mode .tag-item {
    color: #666;
}

body.light-mode .trending-tags .menu-item a,
body.light-mode .tag-item {
    color: #666;
}

body.light-mode .trending-tags .menu-item a:hover,
body.light-mode .trending-tags .menu-item.current-menu-item a,
body.light-mode .tag-item:hover,
body.light-mode .tag-item.active {
    color: #333;
}

body.light-mode .trending-tags .menu-item.hot a,
body.light-mode .tag-item.hot {
    color: #ff3333;
}

body.light-mode .trending-tags .menu-item.hot.current-menu-item a,
body.light-mode .tag-item.hot.active {
    color: #ff3333;
}

body.light-mode .tag-item.latest {
    color: #ff8c00;
}

body.light-mode .tag-item.latest.active {
    color: #ff8c00;
}

body.light-mode .single-article .entry-meta,
body.light-mode .related-post-item {
    border-bottom-color: rgba(0,0,0,0.05);
}

body.light-mode .page-article .entry-content {
    color: #555;
}

body.light-mode .page-article .entry-content h2,
body.light-mode .page-article .entry-content h3,
body.light-mode .page-article .entry-content h4 {
    color: #333;
}

body.light-mode .page-article .entry-content a {
    color: #0066cc;
}

body.light-mode .page-article .entry-content a:hover {
    color: #0052a3;
}

body.light-mode .comment-list .comment {
    background: #f8f9fa;
    border-left-color: rgba(0,0,0,0.1);
}

body.light-mode .comment-list .children .comment {
    background: #f0f2f5;
}

body.light-mode .comment-form input[type="text"],
body.light-mode .comment-form input[type="email"],
body.light-mode .comment-form input[type="url"],
body.light-mode .comment-form textarea {
    background: #f8f9fa;
    border-color: #e0e0e0;
    color: #333;
}

body.light-mode .submit,
body.light-mode .comment-reply-link {
    background: #f0f2f5;
    color: #666;
}

body.light-mode .submit:hover,
body.light-mode .comment-reply-link:hover {
    background: #e0e0e0;
    color: #333;
}

body.light-mode .page-nav {
    background: transparent;
    color: #666;
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .page-nav:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.03);
    color: #333;
    border-color: #999;
}

body.light-mode .page-nav.disabled,
body.light-mode .page-nav:disabled {
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .filter-item {
    background: transparent;
    color: #666;
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .filter-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #333;
    border-color: #999;
}

body.light-mode .filter-item.active {
    background: transparent;
    color: #4a90e2;
    border-color: #4a90e2;
}

body.light-mode .site-footer {
    color: #999;
}

body.light-mode .footer-menu a,
body.light-mode .copyright {
    color: #999;
}

body.light-mode .footer-menu a:hover {
    color: #333;
}

/* 头部样式 */
.site-header {
    background: #1a2332;
    box-shadow: none;
    position: relative;
    z-index: 1000;
    padding: 80px 0 10px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.site-branding {
    text-align: center;
    width: 100%;
}

.site-branding .site-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.site-branding .site-title a {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-branding .site-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.site-branding .site-title a span {
    background: #ff3333;
    padding: 5px 15px;
    border-radius: 4px;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation .nav-menu a {
    font-size: 15px;
    font-weight: 500;
}

/* 搜索框 */
.header-search {
    max-width: 650px;
    margin: 15px auto 0;
}

.search-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form {
    flex: 1;
    display: flex;
    gap: 0;
    background: #2a3647;
    border-radius: 50px;
    padding: 4px 6px 4px 20px;
    align-items: center;
    transition: all 0.3s;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    background: #2a3647;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b95a5;
    transition: all 0.3s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: #323f52;
    color: #fff;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

body.light-mode .theme-toggle .sun-icon {
    display: block;
}

body.light-mode .theme-toggle .moon-icon {
    display: none;
}

.search-form:focus-within {
    background: #323f52;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.search-form label {
    flex: 1;
    display: block;
}

.search-field {
    width: 100%;
    padding: 8px 0;
    border: none;
    background: transparent;
    color: #e0e0e0;
    outline: none;
    font-size: 14px;
}

.search-field::placeholder {
    color: #6b7785;
}

.search-submit {
    padding: 6px 16px;
    background: transparent;
    color: #8b95a5;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.3s;
}

.search-submit:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.search-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
}

.toggle-label {
    font-size: 12px;
}

.toggle-switch {
    width: 30px;
    height: 16px;
    background: #3d4a5c;
    border-radius: 8px;
    position: relative;
    transition: background 0.3s;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #8b95a5;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s;
}

.search-toggle.active .toggle-switch {
    background: #4a90e2;
}

.search-toggle.active .toggle-switch::after {
    left: 16px;
    background: #fff;
}

.search-button {
    padding: 6px 12px;
    min-width: auto;
}

.search-button svg {
    display: block;
}

/* 主内容区 */
.site-main {
    padding: 25px 0 25px;
}

.site-main .container {
    max-width: 750px;
    margin: 0 auto;
}

.content-area {
    width: 100%;
}

/* 热搜榜单样式 */
.posts-section {
    background: #2a3647;
    border-radius: 8px;
    padding: 16px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.time-filter {
    display: flex;
    gap: 5px;
}

.filter-item {
    padding: 4px 12px;
    background: transparent;
    color: #8b95a5;
    border: 1px solid rgba(139, 149, 165, 0.3);
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
}

.filter-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: #8b95a5;
}

.filter-item.active {
    background: transparent;
    color: #4a90e2;
    border-color: #4a90e2;
}

/* 今日数量显示 */
.today-count {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 3px;
    font-size: 12px;
}

.today-count .count-label {
    color: #ffa500;
    font-weight: 500;
}

.today-count .count-number {
    color: #ffa500;
    font-weight: 700;
    font-size: 14px;
}

body.light-mode .today-count {
    background: rgba(255, 165, 0, 0.15);
    border-color: rgba(255, 165, 0, 0.4);
}

body.light-mode .today-count .count-label,
body.light-mode .today-count .count-number {
    color: #ff8c00;
}

.section-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    color: #8b95a5;
    border: 1px solid rgba(139, 149, 165, 0.3);
    border-radius: 3px;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.page-nav svg {
    display: block;
}

.page-nav:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: #8b95a5;
}

.page-nav.disabled,
.page-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(139, 149, 165, 0.2);
}

.page-current {
    font-size: 12px;
    color: #8b95a5;
    padding: 0 5px;
}

.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.post-card:hover {
    background: rgba(255,255,255,0.02);
}

.post-card:last-child {
    border-bottom: none;
}

.post-rank {
    font-size: 15px;
    font-weight: 600;
    color: #6b7785;
    min-width: 28px;
}

.post-card:nth-child(1) .post-rank,
.post-card:nth-child(2) .post-rank,
.post-card:nth-child(3) .post-rank {
    color: #ff6b6b;
}

.post-views-count {
    font-size: 12px;
    color: #6b7785;
    white-space: nowrap;
    margin-left: auto;
}

.post-date-time {
    font-size: 12px;
    color: #6b7785;
    white-space: nowrap;
    margin-left: auto;
}

.post-thumbnail {
    display: none;
}

.post-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.entry-title {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #e0e0e0;
}

.entry-title a:hover {
    color: #fff;
}

.entry-summary {
    display: none;
}

.post-meta {
    display: none;
}

.category-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #ff3333;
    border-radius: 3px;
    font-size: 11px;
    color: #fff;
    margin-right: 8px;
}

.post-categories {
    display: inline;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* 热门文章 */
.popular-posts {
    list-style: none;
}

.popular-posts li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.popular-posts li:last-child {
    border-bottom: none;
}

.popular-posts a {
    display: flex;
    gap: 10px;
    align-items: center;
}

.popular-posts img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* 单篇文章 */
.single-article {
    background: #2a3647;
    padding: 25px 30px;
    border-radius: 8px;
    color: #e0e0e0;
}

/* 页面内容 */
.page-article .entry-content {
    padding: 20px 0 0;
}

.page-article .entry-content {
    font-size: 15px;
    line-height: 1.8;
    color: #d0d0d0;
}

.page-article .entry-content p {
    margin-bottom: 15px;
}

.page-article .entry-content h2,
.page-article .entry-content h3,
.page-article .entry-content h4 {
    color: #fff;
    margin: 25px 0 15px;
}

.page-article .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.page-article .entry-content a {
    color: #4a90e2;
}

.page-article .entry-content a:hover {
    color: #5ba3f5;
}

.single-article .entry-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #fff;
    line-height: 1.4;
}

.single-article .entry-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #8b95a5;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
}

.single-article .post-category,
.single-article .post-author,
.single-article .post-date,
.single-article .post-views {
    display: flex;
    align-items: center;
    gap: 3px;
}

.single-article .post-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.single-article .post-category a {
    color: #8b95a5;
}

.single-article .post-category a:hover {
    color: #fff;
}

.single-article .post-author svg,
.single-article .post-category svg,
.single-article .post-date svg,
.single-article .post-views svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.single-article .post-thumbnail {
    margin: 15px 0;
}

.single-article .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.single-article .entry-content {
    font-size: 15px;
    line-height: 1.8;
    margin: 25px 0;
    color: #d0d0d0;
}

.single-article .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 5px 0;
}

.single-article .entry-content p {
    margin-bottom: 15px;
}

.single-article .entry-content h2,
.single-article .entry-content h3,
.single-article .entry-content h4 {
    color: #fff;
    margin: 25px 0 15px;
}

.single-article .entry-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.single-article .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.single-article .tags-label {
    color: #8b95a5;
    font-size: 13px;
}

.single-article .tag-link {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #8b95a5;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.single-article .tag-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 评论区 */
.comments-section {
    margin-top: 10px;
}

.comments-area {
    color: #e0e0e0;
    background: #2a3647;
    padding: 20px 25px;
    margin-top: 15px;
    border-radius: 8px;
}

.comments-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.comment-list .comment {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid rgba(255, 255, 255, 0.1);
}

.comment-list .comment:last-child {
    margin-bottom: 0;
}

/* 子评论缩进 */
.comment-list .children {
    list-style: none;
    margin: 15px 0 0 30px;
    padding: 0;
}

.comment-list .children .comment {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: rgba(255, 255, 255, 0.08);
}

.comment-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    margin-bottom: 0;
}

.comment-author .avatar {
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-author .fn {
    font-style: normal;
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    font-size: 11px;
    color: #8b95a5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-metadata a {
    color: #8b95a5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-metadata a:hover {
    color: #fff;
}

.comment-metadata .comment-edit-link {
    margin-left: auto;
}

.comment-content {
    font-size: 14px;
    color: #d0d0d0;
    line-height: 1.6;
}

.comment-content p {
    margin: 0 0 10px 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 10px;
}

.comment-reply-link {
    font-size: 12px;
    color: #8b95a5;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-reply-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.comment-reply-link::before {
    content: '↩';
    font-size: 14px;
}

/* 评论等待审核 */
.comment-awaiting-moderation {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border-radius: 4px;
    font-size: 11px;
    margin-top: 5px;
}

.no-comments {
    color: #8b95a5;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}

/* 评论分页 */
.comment-navigation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.comment-navigation a {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #8b95a5;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.comment-navigation a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 评论表单 */
.comment-reply-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin: 0;
}

.comment-form label {
    display: block;
    font-size: 12px;
    color: #8b95a5;
    margin-bottom: 5px;
}

.comment-notes,
.logged-in-as {
    font-size: 13px;
    color: #8b95a5;
    margin-bottom: 15px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    margin: 0;
}

.submit {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 相关文章 */
.related-posts {
    margin-top: 15px;
    background: #2a3647;
    padding: 20px 25px;
    border-radius: 8px;
}

.related-posts .section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.related-posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.related-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
    margin: 0 -25px;
    padding-left: 25px;
    padding-right: 25px;
}

.related-post-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.related-post-item:last-child {
    border-bottom: none;
}

.related-rank {
    font-size: 14px;
    font-weight: 600;
    color: #6b7785;
    min-width: 24px;
    flex-shrink: 0;
}

.related-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.related-title {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.related-title a {
    color: #e0e0e0;
}

.related-title a:hover {
    color: #fff;
}

.related-meta {
    display: flex;
    gap: 15px;
    font-size: 11px;
    color: #8b95a5;
    flex-shrink: 0;
}

.related-category,
.related-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.related-category svg,
.related-date svg {
    flex-shrink: 0;
}

.search-count {
    font-size: 12px;
    color: #8b95a5;
}

.no-results {
    padding: 20px 0;
    text-align: center;
    color: #8b95a5;
}

.no-results p {
    margin: 0;
    font-size: 13px;
}

/* 分页样式 */
.trending-section {
    background: #2a3647;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.trending-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trending-tags::-webkit-scrollbar {
    display: none;
}

.tag-item {
    padding: 0;
    background: transparent;
    font-size: 14px;
    color: #8b95a5;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag-item:hover,
.tag-item.active {
    color: #fff;
}

.tag-item.hot {
    color: #ff3333;
}

.tag-item.latest {
    color: #ffa500;
}

.tag-item.latest.active {
    color: #ffa500;
}

.trending-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    list-style: none;
}

.trending-tags::-webkit-scrollbar {
    display: none;
}

.trending-tags .menu-item {
    list-style: none;
}

.trending-tags .menu-item a,
.tag-item {
    padding: 0;
    background: transparent;
    font-size: 14px;
    color: #8b95a5;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.trending-tags .menu-item a:hover,
.trending-tags .menu-item.current-menu-item a,
.tag-item:hover,
.tag-item.active {
    color: #fff;
}

.trending-tags .menu-item.hot a,
.tag-item.hot {
    color: #ff3333;
}

.trending-tags .menu-item.hot a::before,
.tag-item.hot::before {
    justify-content: center;
    margin: 0;
    order: 1;
}

.copyright {
    order: 2;
}

/* 底部样式 */
.site-footer {
    padding: 0 0 20px 0;
    text-align: center;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-menu {
    display: flex;
    list-style: none;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    display: flex;
    align-items: center;
}

.footer-menu a {
    color: #6b7785;
    font-size: 12px;
}

.footer-menu a:hover {
    color: #fff;
}

.footer-menu li:not(:last-child)::after {
    content: '|';
    margin-left: 12px;
    color: #4a5568;
}

.copyright {
    color: #6b7785;
}

.copyright p {
    margin: 0;
    font-size: 12px;
}

/* 公告横幅 */
.notice-banner {
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 6px;
    padding: 8px 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-badge {
    background: #ff3333;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.notice-text {
    color: #e0e0e0;
    font-size: 12px;
}

body.light-mode .notice-banner {
    background: rgba(255, 51, 51, 0.08);
    border-color: rgba(255, 51, 51, 0.2);
}

body.light-mode .notice-text {
    color: #333;
}

/* 分页样式 */
.pagination,
.nav-links {
    display: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .site-header {
        padding: 30px 0 10px;
    }
    
    .site-main {
        padding: 15px 0 25px;
    }
    
    .site-main .container {
        padding: 0 12px;
    }
    
    .posts-section {
        padding: 14px 12px;
    }
    
    .post-card {
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .trending-section {
        padding: 10px 15px;
    }
    
    .trending-tags {
        gap: 15px;
    }
    
    .header-inner {
        flex-direction: column;
    }
    
    .search-form {
        width: 100%;
    }
    
    .site-branding .site-title {
        font-size: 24px;
    }
    
    .header-search {
        margin: 10px auto 0;
    }
    
    .single-article .entry-title {
        font-size: 20px;
    }
    
    .single-article {
        padding: 20px 15px;
    }
    
    .related-posts {
        padding: 20px 15px;
    }
    
    .related-post-item {
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .related-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .related-meta {
        width: 100%;
    }
}

/* 深度搜索结果样式 */
.deep-search-results {
    background: #2a3647;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.cloud-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cloud-pagination {
    display: flex;
    justify-content: center;
    padding-top: 16px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.deep-search-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cloud-items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cloud-list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.cloud-list-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.cloud-list-item:last-child {
    border-bottom: none;
}

.cloud-item-main {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.cloud-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloud-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.cloud-info {
    flex: 1;
    min-width: 0;
}

.cloud-item-title {
    font-size: 14px;
    font-weight: 400;
    color: #e0e0e0;
    margin: 0 0 4px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cloud-title-link {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s;
}

.cloud-title-link:hover {
    color: #4a90e2;
    text-decoration: underline;
}

.cloud-item-desc {
    font-size: 12px;
    color: #8b95a5;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cloud-actions-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cloud-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cloud-badge-type {
    background: transparent;
    color: #4a90e2;
    border: 1px solid rgba(74, 144, 226, 0.3);
    cursor: default;
    pointer-events: none;
}

/* 不同网盘类型的颜色 */
.cloud-list-item[data-type="百度网盘"] .cloud-badge-type {
    color: #2196F3;
    border-color: rgba(33, 150, 243, 0.3);
    background: rgba(33, 150, 243, 0.05);
}

.cloud-list-item[data-type="阿里云盘"] .cloud-badge-type {
    color: #FF6A00;
    border-color: rgba(255, 106, 0, 0.3);
    background: rgba(255, 106, 0, 0.05);
}

.cloud-list-item[data-type="夸克网盘"] .cloud-badge-type {
    color: #8B7FE8;
    border-color: rgba(139, 127, 232, 0.3);
    background: rgba(139, 127, 232, 0.05);
}

.cloud-list-item[data-type="天翼云盘"] .cloud-badge-type {
    color: #0099FF;
    border-color: rgba(0, 153, 255, 0.3);
    background: rgba(0, 153, 255, 0.05);
}

.cloud-list-item[data-type="115网盘"] .cloud-badge-type {
    color: #0E9AFF;
    border-color: rgba(14, 154, 255, 0.3);
    background: rgba(14, 154, 255, 0.05);
}

.cloud-list-item[data-type="迅雷云盘"] .cloud-badge-type {
    color: #0066FF;
    border-color: rgba(0, 102, 255, 0.3);
    background: rgba(0, 102, 255, 0.05);
}

.cloud-list-item[data-type="磁力链接"] .cloud-badge-type {
    color: #764ba2;
    border-color: rgba(118, 75, 162, 0.3);
    background: rgba(118, 75, 162, 0.05);
}

.cloud-list-item[data-type="UC网盘"] .cloud-badge-type {
    color: #FF5722;
    border-color: rgba(255, 87, 34, 0.3);
    background: rgba(255, 87, 34, 0.05);
}

.cloud-list-item[data-type="城通网盘"] .cloud-badge-type {
    color: #00BFA5;
    border-color: rgba(0, 191, 165, 0.3);
    background: rgba(0, 191, 165, 0.05);
}

.cloud-badge-code {
    background: transparent;
    color: #8b95a5;
    border: 1px solid rgba(139, 149, 165, 0.3);
}

.cloud-badge-code:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: #8b95a5;
}

.cloud-badge-code.copied {
    background: transparent;
    color: #4caf50;
    border-color: #4caf50;
}

.cloud-badge svg {
    flex-shrink: 0;
}

.no-cloud-results {
    padding: 30px 0;
    text-align: center;
}

.no-cloud-results p {
    color: #8b95a5;
    font-size: 13px;
    margin: 0;
}

/* 浅色主题适配 */
body.light-mode .deep-search-results {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

body.light-mode .cloud-filter {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .cloud-pagination {
    border-top-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .cloud-list-item {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .cloud-list-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

body.light-mode .cloud-item-title {
    color: #333;
}

body.light-mode .cloud-title-link {
    color: #333;
}

body.light-mode .cloud-title-link:hover {
    color: #2271b1;
}

body.light-mode .cloud-item-desc {
    color: #666;
}

body.light-mode .cloud-badge-type {
    background: transparent;
    color: #4a90e2;
    border-color: rgba(74, 144, 226, 0.3);
}

/* 浅色主题下不同网盘类型的颜色 */
body.light-mode .cloud-list-item[data-type="百度网盘"] .cloud-badge-type {
    color: #1976D2;
    border-color: rgba(25, 118, 210, 0.3);
    background: rgba(25, 118, 210, 0.05);
}

body.light-mode .cloud-list-item[data-type="阿里云盘"] .cloud-badge-type {
    color: #E65100;
    border-color: rgba(230, 81, 0, 0.3);
    background: rgba(230, 81, 0, 0.05);
}

body.light-mode .cloud-list-item[data-type="夸克网盘"] .cloud-badge-type {
    color: #6B5FD8;
    border-color: rgba(107, 95, 216, 0.3);
    background: rgba(107, 95, 216, 0.05);
}

body.light-mode .cloud-list-item[data-type="天翼云盘"] .cloud-badge-type {
    color: #0077CC;
    border-color: rgba(0, 119, 204, 0.3);
    background: rgba(0, 119, 204, 0.05);
}

body.light-mode .cloud-list-item[data-type="115网盘"] .cloud-badge-type {
    color: #0077DD;
    border-color: rgba(0, 119, 221, 0.3);
    background: rgba(0, 119, 221, 0.05);
}

body.light-mode .cloud-list-item[data-type="迅雷云盘"] .cloud-badge-type {
    color: #0052CC;
    border-color: rgba(0, 82, 204, 0.3);
    background: rgba(0, 82, 204, 0.05);
}

body.light-mode .cloud-list-item[data-type="磁力链接"] .cloud-badge-type {
    color: #5E3A7F;
    border-color: rgba(94, 58, 127, 0.3);
    background: rgba(94, 58, 127, 0.05);
}

body.light-mode .cloud-list-item[data-type="UC网盘"] .cloud-badge-type {
    color: #D84315;
    border-color: rgba(216, 67, 21, 0.3);
    background: rgba(216, 67, 21, 0.05);
}

body.light-mode .cloud-list-item[data-type="城通网盘"] .cloud-badge-type {
    color: #00897B;
    border-color: rgba(0, 137, 123, 0.3);
    background: rgba(0, 137, 123, 0.05);
}

body.light-mode .cloud-badge-code {
    background: transparent;
    color: #666;
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .cloud-badge-code:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #333;
    border-color: #999;
}

body.light-mode .cloud-badge-code.copied {
    background: transparent;
    color: #2e7d32;
    border-color: #4caf50;
}

body.light-mode .no-cloud-results p {
    color: #999;
}

/* 响应式 */
@media (max-width: 768px) {
    .deep-search-results {
        padding: 14px 12px;
    }
    
    .cloud-list-item {
        margin: 0 -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .cloud-item-main {
        padding: 10px 0;
        gap: 10px;
    }
    
    .cloud-icon {
        flex-shrink: 0;
    }
    
    .cloud-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .cloud-item-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .cloud-item-desc {
        display: none;
    }
    
    .cloud-actions-inline {
        flex-shrink: 0;
        flex-direction: row;
        gap: 6px;
    }
    
    .cloud-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* 搜索加载动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 深度搜索提示 */
.deep-search-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    margin-bottom: 12px;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 6px;
    color: #4a90e2;
    font-size: 13px;
}

.deep-search-tip svg {
    flex-shrink: 0;
}

.deep-search-tip span {
    flex: 1;
}

.deep-search-quick-btn {
    padding: 4px 12px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.deep-search-quick-btn:hover {
    background: #5ba3f5;
}

.deep-search-suggestion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(74, 144, 226, 0.05);
    border: 1px dashed rgba(74, 144, 226, 0.3);
    border-radius: 8px;
}

.deep-search-suggestion svg {
    color: #4a90e2;
}

.deep-search-suggestion p {
    margin: 0;
    color: #8b95a5;
    font-size: 14px;
}

.deep-search-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.deep-search-action-btn:hover {
    background: #5ba3f5;
    transform: translateY(-1px);
}

.deep-search-action-btn svg {
    flex-shrink: 0;
}

/* 加载动画 */
.deep-search-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #4a90e2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.deep-search-loading p {
    color: #fff;
    font-size: 14px;
    margin: 0;
}

/* 创建文章加载遮罩 */
.create-post-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.create-post-loading .loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.create-post-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #4a90e2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.create-post-loading p {
    color: #fff;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

/* 浅色主题适配 */
body.light-mode .deep-search-tip {
    background: rgba(74, 144, 226, 0.08);
    border-color: rgba(74, 144, 226, 0.25);
    color: #2271b1;
}

body.light-mode .deep-search-quick-btn {
    background: #2271b1;
}

body.light-mode .deep-search-quick-btn:hover {
    background: #135e96;
}

body.light-mode .deep-search-suggestion {
    background: rgba(74, 144, 226, 0.03);
    border-color: rgba(74, 144, 226, 0.2);
}

body.light-mode .deep-search-suggestion svg {
    color: #2271b1;
}

body.light-mode .deep-search-suggestion p {
    color: #666;
}

body.light-mode .deep-search-action-btn {
    background: #2271b1;
}

body.light-mode .deep-search-action-btn:hover {
    background: #135e96;
}

/* 响应式 */
@media (max-width: 768px) {
    .deep-search-tip {
        font-size: 12px;
        padding: 8px 12px;
        flex-wrap: wrap;
    }
    
    .deep-search-quick-btn {
        width: 100%;
        margin-top: 8px;
    }
    
    .deep-search-suggestion {
        padding: 15px;
    }
    
    .deep-search-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #2a3647;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #323f52;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top svg {
    display: block;
}

/* 浅色主题适配 */
body.light-mode .back-to-top {
    background: #fff;
    color: #333;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-mode .back-to-top:hover {
    background: #f5f5f5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* 响应式 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* 文章中的网盘下载按钮 */
.cloud-download-section {
    margin: 0 0 20px 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cloud-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.cloud-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.cloud-btn svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.cloud-btn:hover svg {
    opacity: 1;
}

.cloud-btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    filter: brightness(0) invert(1);
}

/* 不同网盘的图标 */
.cloud-btn-icon[data-icon="baidu"] {
    background-image: url('../img/baidu.svg');
}

.cloud-btn-icon[data-icon="ali"] {
    background-image: url('../img/ali.svg');
}

.cloud-btn-icon[data-icon="quark"] {
    background-image: url('../img/quark.svg');
}

.cloud-btn-icon[data-icon="tianyi"] {
    background-image: url('../img/tianyi.svg');
}

.cloud-btn-icon[data-icon="115"] {
    background-image: url('../img/115.svg');
}

.cloud-btn-icon[data-icon="xunlei"] {
    background-image: url('../img/xunlei.svg');
}

.cloud-btn-icon[data-icon="magnet"] {
    background-image: url('../img/magnet.svg');
}

.cloud-btn-icon[data-icon="uc"] {
    background-image: url('../img/uc.svg');
}

.cloud-btn-icon[data-icon="ctfile"] {
    background-image: url('../img/ctfile.svg');
}

/* 不同网盘的颜色 - 根据官方APP品牌色 */
.cloud-btn-baidu {
    background: #2932E1; /* 百度网盘蓝 */
}

.cloud-btn-baidu:hover {
    background: #1f25b8;
}

.cloud-btn-ali {
    background: #047857; /* 阿里云盘墨绿色 */
}

.cloud-btn-ali:hover {
    background: #065F46;
}

.cloud-btn-quark {
    background: #C084FC; /* 夸克浅紫色 */
}

.cloud-btn-quark:hover {
    background: #A855F7;
}

.cloud-btn-tianyi {
    background: #EC4899; /* 天翼云盘粉红色 */
}

.cloud-btn-tianyi:hover {
    background: #DB2777;
}

.cloud-btn-115 {
    background: #1E3A8A; /* 115网盘深蓝色 */
}

.cloud-btn-115:hover {
    background: #1E40AF;
}

.cloud-btn-xunlei {
    background: #0E7EFF; /* 迅雷蓝 */
}

.cloud-btn-xunlei:hover {
    background: #0B65CC;
}

.cloud-btn-magnet {
    background: #8B5CF6; /* 磁力紫 */
}

.cloud-btn-magnet:hover {
    background: #7C3AED;
}

.cloud-btn-uc {
    background: #FF5722; /* UC橙红 */
}

.cloud-btn-uc:hover {
    background: #E64A19;
}

.cloud-btn-ctfile {
    background: #00BFA5; /* 城通青 */
}

.cloud-btn-ctfile:hover {
    background: #00A896;
}

/* 全网搜索按钮 */
.cloud-btn-search-all {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cloud-btn-search-all:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408a 100%);
}

.cloud-extract-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    margin-top: 0;
}

.code-label {
    font-size: 13px;
    color: #8b95a5;
}

.code-value {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    color: #4a90e2;
    letter-spacing: 1px;
}

.code-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: transparent;
    color: #8b95a5;
    border: 1px solid rgba(139, 149, 165, 0.3);
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: #8b95a5;
}

.code-copy-btn.copied {
    color: #4caf50;
    border-color: #4caf50;
}

.code-copy-btn svg {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}



body.light-mode .cloud-btn {
    color: #fff !important;
}

body.light-mode .cloud-btn:hover {
    color: #fff !important;
}

body.light-mode .cloud-extract-code {
    background: transparent;
    border: none;
}

body.light-mode .code-label {
    color: #666;
}

body.light-mode .code-value {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: #2271b1;
}

body.light-mode .code-copy-btn {
    background: transparent;
    color: #666;
    border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .code-copy-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #333;
    border-color: #999;
}

body.light-mode .code-copy-btn.copied {
    color: #2e7d32;
    border-color: #4caf50;
}

/* 响应式 */
@media (max-width: 768px) {
    .cloud-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .cloud-btn-icon {
        width: 14px;
        height: 14px;
    }
    
    .cloud-extract-code {
        gap: 6px;
    }
    
    .code-label {
        font-size: 12px;
    }
    
    .code-value {
        font-size: 12px;
        padding: 2px 6px;
    }
    
    .code-copy-btn {
        font-size: 10px;
        padding: 2px 6px;
    }
}

/* 复制通知提示 */
.copy-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    min-width: 280px;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
}

.notification-content svg {
    flex-shrink: 0;
    color: #4caf50;
}

.notification-content span {
    flex: 1;
    font-weight: 500;
}

.notification-timer {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.timer-bar {
    height: 100%;
    background: #4caf50;
    width: 100%;
    animation: timerProgress 2s linear forwards;
}

@keyframes timerProgress {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

body.light-mode .copy-notification {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
}

@media (max-width: 768px) {
    .copy-notification {
        top: 60px;
        font-size: 13px;
        min-width: 260px;
    }
    
    .notification-content {
        padding: 12px 16px;
    }
}

/* 搜索弹窗样式 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    background: #2a3647;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.search-modal-close {
    background: transparent;
    border: none;
    color: #8b95a5;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.search-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.search-modal-body {
    padding: 24px;
}

.search-modal-body label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.search-modal-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.search-modal-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4a90e2;
}

.search-modal-input::placeholder {
    color: #6b7785;
}

.search-modal-tip {
    margin: 12px 0 0 0;
    font-size: 13px;
    color: #8b95a5;
    line-height: 1.5;
}

.search-modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-modal-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.search-modal-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #8b95a5;
}

.search-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.search-modal-btn-confirm {
    background: #4a90e2;
    color: #fff;
}

.search-modal-btn-confirm:hover {
    background: #5ba3f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* 浅色主题适配 */
body.light-mode .search-modal-content {
    background: #fff;
}

body.light-mode .search-modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .search-modal-header h3 {
    color: #333;
}

body.light-mode .search-modal-close {
    color: #666;
}

body.light-mode .search-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.light-mode .search-modal-body label {
    color: #333;
}

body.light-mode .search-modal-input {
    background: #f5f7fa;
    border-color: #e0e0e0;
    color: #333;
}

body.light-mode .search-modal-input:focus {
    background: #fff;
    border-color: #4a90e2;
}

body.light-mode .search-modal-input::placeholder {
    color: #999;
}

body.light-mode .search-modal-tip {
    color: #666;
}

body.light-mode .search-modal-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .search-modal-btn-cancel {
    background: #f0f2f5;
    color: #666;
}

body.light-mode .search-modal-btn-cancel:hover {
    background: #e0e0e0;
    color: #333;
}

/* 响应式 */
@media (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        margin: 0 10px;
    }
    
    .search-modal-header {
        padding: 16px 20px;
    }
    
    .search-modal-header h3 {
        font-size: 16px;
    }
    
    .search-modal-body {
        padding: 20px;
    }
    
    .search-modal-footer {
        padding: 12px 20px;
    }
}
