/*
Theme Name: AI Tools Directory
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A modern WordPress theme for AI tools directory with sidebar layout and detailed product pages
Version: 1.6.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-tools-directory
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, responsive-layout
*/
:root {
    /* 主色调 */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #818cf8;
    --primary-lighter: #c7d2fe;
    --primary-lightest: #e0e7ff;
    --secondary-color: #8b5cf6;
    --secondary-hover: #7c3aed;
    --secondary-light: #a78bfa;

    /* 功能色 */
    --success-color: #10b981;
    --success-hover: #059669;
    --success-light: #d1fae5;
    --success-dark: #065f46;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: #fee2e2;
    --danger-dark: #b91c1c;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --info-color: #3b82f6;
    --info-light: #dbeafe;

    /* 文字颜色 */
    --text-color: #1f2937;
    --text-light: #4b5563;
    --text-lighter: #9ca3af;
    --text-lightest: #d1d5db;

    /* 背景颜色 */
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --bg-dark: #1f2937;

    /* 边框颜色 */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-dark: #d1d5db;

    /* 悬停颜色 */
    --hover-color: #f3f4f6;
    --hover-light: #f9fafb;

    /* 阴影系统 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);

    /* 间距 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    --radius-2xl: 12px;
    --radius-3xl: 16px;
    --radius-full: 9999px;

    /* 字体大小 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;

    /* 字重 */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* 行高 */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* 布局尺寸 */
    --container-max: 1400px;
    --content-max: 800px;
    --sidebar-width: 350px;
    --header-height: 64px;

    /* 过渡动画 */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-slower: 0.5s ease;

    /* Z-index层级 */
    --z-dropdown: 100;
    --z-sticky: 1000;
    --z-modal: 9999;
    --z-tooltip: 10000;
}


/* ===================================
   头部样式
   =================================== */
.site-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

/* Logo 样式 */
.site-branding {
    flex-shrink: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.8;
}

.logo-icon {
    flex-shrink: 0;
}

.site-name {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.name-primary {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

/* 主导航栏 */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 0.625rem 1rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-menu a:hover {
    background: var(--bg-light);
    color: #10b981;
}

.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    background: #d1fae5;
    color: #065f46;
}

/* 下拉菜单 */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li {
    width: 100%;
}

.nav-menu .sub-menu a {
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 6px;
}

/* 右侧操作按钮 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.action-icon {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-icon:hover {
    background: var(--bg-light);
    color: #10b981;
}

.action-icon svg {
    flex-shrink: 0;
}

.action-label {
    display: inline;
}

.btn-submit {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-login {
    padding: 0.5rem 1rem;
    background: white;
    color: var(--text-color);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: var(--bg-light);
    border-color: #d1d5db;
    color: var(--text-color);
}

/* 移动端优化 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 搜索框 */
.search-overlay {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.search-form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.search-form-header:focus-within {
    border-color: #10b981;
}

.search-icon {
    flex-shrink: 0;
    color: var(--text-light);
}

.search-field-header {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.125rem;
    color: var(--text-color);
    outline: none;
}

.search-field-header::placeholder {
    color: var(--text-light);
}

.search-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0.5rem;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.search-close:hover {
    background: white;
    color: var(--text-color);
}

/* ===================================
   主要内容区域
   =================================== */
.site-content {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

/* 主页特殊布局 - 不使用默认grid */
body.home .site-content,
body.blog .site-content,
body.archive .site-content {
    display: block;
    padding: 0;
    margin: 0 auto;
    grid-template-columns: unset;
}

/* ===================================
   区域标题样式
   =================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.section-title svg {
    flex-shrink: 0;
}

.section-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* ===================================
   本周热门区域
   =================================== */
.featured-section {
    margin-bottom: 3rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.featured-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.featured-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 预览 */
.featured-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f4f6;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 热门标签 */
.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 71, 87, 0.95);
    color: white;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

/* 内容区域 */
.featured-content {
    padding: 1.25rem;
}

.featured-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.featured-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.featured-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-meta {
    flex: 1;
    min-width: 0;
}

.featured-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.375rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
}

.featured-rating svg {
    flex-shrink: 0;
}

.featured-rating span:first-of-type {
    font-weight: 600;
    color: #065f46;
}

.rating-count {
    color: #9ca3af;
}

.featured-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 0.875rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.featured-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1;
}

.featured-tag.tag-primary {
    background: #fee2e2;
    color: #dc2626;
}

/* ===================================
   最新收录区
   =================================== */
.latest-section {
    margin-bottom: 2rem;
}

/* ===================================
   文章列表样式 - 增强版横向布局
   =================================== */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.post-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.post-link {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: start;
    gap: 1.25rem;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
}

/* 左侧图标 */
.post-icon {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.post-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 信息 */
.post-info {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
    padding-right: 1rem;
}

/* 头部 */
.post-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.post-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.post-title-link {
    color: inherit;
    text-decoration: none;
}

.post-title-link:hover {
    color: var(--success-dark);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* 评分 - 星级样式 */
.post-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
}

.post-rating svg {
    flex-shrink: 0;
    color: #f59e0b;
    fill: #f59e0b;
}

.rating-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1;
}

.external-icon {
    display: none;
}

/* 描述 */
.post-description {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}


/* 标签 - 底部信息分隔指示 */
.post-meta {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 0.375rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    color: #6b7280;
    border-radius: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1;
}

.meta-tag:not(:last-child)::after {
    content: "\00B7";
    margin: 0 0.5rem;
    color: #d1d5db;
}

.meta-tag.tag-primary {
    background: transparent;
    color: #6b7280;
    font-weight: 500;
}

/* 统计信息 - 隐藏 */
.post-stats {
    display: none;
}

/* 操作按钮 */
.post-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    min-width: 140px;
    padding-top: 0.25rem;
}

.btn-view-review,
.btn-visit-site {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.625rem 1rem;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.btn-view-review {
    background: #ffffff;
    color: var(--text-color);
    border: 1px solid var(--border-dark);
}

.btn-view-review:hover {
    border-color: var(--success-color);
    color: var(--success-dark);
    background: var(--success-light);
}

.btn-visit-site:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-compare {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4f46e5;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-compare:hover {
    color: #4338ca;
}

/* ===================================
   侧边栏样式
   =================================== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}


.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget a:hover {
    color: var(--primary-color);
}

.category-count {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* 搜索框 */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-field {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: var(--secondary-color);
}

/* ===================================

   =================================== */
.site-footer {
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-widget a:hover {
    color: var(--primary-color);
}

/* Footer About column */
.footer-about-desc {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0 0 1rem;
}

.footer-trust-badges {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-trust-badges li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem !important;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.footer-trust-badges li svg {
    flex-shrink: 0;
}

.footer-trust-badges li span {
    line-height: 1.4;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

/* ===================================
   分页样式
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===================================
   响应式设计
   =================================== */
@media (max-width: 1024px) {
    .site-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .post-card {
        grid-template-columns: 1fr;
    }
    
    .post-thumbnail {
        width: 100%;
        height: 250px;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .single-post-content {
        padding: 1.5rem;
    }
    
    .post-link {
        grid-template-columns: 64px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .post-icon {
        width: 64px;
        height: 64px;
    }
    
    .post-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-width: 0;
        padding-top: 0.5rem;
    }
    
    .post-info {
        padding-right: 0;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .site-footer {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .footer-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 1rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .footer-widget h3 {
        font-size: 1rem;
        margin-bottom: 0.625rem;
    }

    .footer-widget ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.25rem;
    }

    .footer-widget li {
        margin-bottom: 0;
    }

    .footer-widget a {
        color: var(--text-light);
        font-size: 0.875rem;
    }

    .footer-widget a:hover {
        color: var(--primary-color);
    }

    .site-footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }

    .footer-bottom {
        padding-top: 1.25rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .site-content {
        padding: 0 1rem;
    }

    .site-footer {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .footer-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 0.5rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .post-link {
        grid-template-columns: 52px 1fr;
        gap: 0.75rem;
        padding: 0.875rem;
    }
    
    .post-icon {
        width: 52px;
        height: 52px;
    }
    
    .post-title {
        font-size: 1rem;
    }
    
    .post-description {
        font-size: 0.875rem;
    }

    .post-actions {
        grid-template-columns: 1fr;
    }
    
    .post-rating .rating-value {
        display: none;
    }
    
    .single-post-title {
        font-size: 1.5rem;
    }
    
    .single-post-content {
        padding: 1rem;
    }
}


/* ===================================
   收藏功能样式
   =================================== */

/* 头部收藏数量徽章 */
.favorites-link {
    position: relative;
}

.favorites-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff4757;
    color: white;
    border-radius: 9px;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0 4px;
    line-height: 1;
}

/* 详情页收藏按钮 */
.btn-favorite {
    position: relative;
}

.btn-favorite .icon-heart {
    display: block;
}

.btn-favorite .icon-heart-filled {
    display: none;
}

.btn-favorite.is-favorited .icon-heart {
    display: none;
}

.btn-favorite.is-favorited .icon-heart-filled {
    display: block;
}

.btn-favorite.is-favorited {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.btn-favorite.is-favorited:hover {
    background: #fecaca;
    border-color: #fca5a5;
}

.btn-favorite.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===================================
   收藏页面样式
   =================================== */
.favorites-page .site-content {
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.favorites-container {
    width: 100%;
}

/* 页面头部 */
.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.header-content .page-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.header-content .page-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.header-actions .btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    color: #1a1a1a;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-actions .btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* 收藏列表 */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.favorite-item {
    position: relative;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.favorite-item:hover {
    background: #f9fafb;
}

.favorite-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.favorite-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

.favorite-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-content {
    flex: 1;
    min-width: 0;
}

.favorite-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.favorite-excerpt {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.favorite-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.favorite-date {
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* 移除按钮 */
.btn-remove-favorite {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
}

.favorite-item:hover .btn-remove-favorite {
    opacity: 1;
}

.btn-remove-favorite:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

.btn-remove-favorite.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 空状态 */
.favorites-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.empty-icon {
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
}

.empty-text {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 2rem 0;
    max-width: 400px;
}

.favorites-empty .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.favorites-empty .btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}


/* ===================================
   自定义确认对话框
   =================================== */
.custom-confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-confirm-dialog.show {
    opacity: 1;
}

.confirm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.confirm-box {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.custom-confirm-dialog.show .confirm-box {
    transform: scale(1);
}

.confirm-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.confirm-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.confirm-message {
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.confirm-actions {
    display: flex;
    gap: 0.75rem;
}

.confirm-actions button {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-cancel:hover {
    background: #e5e7eb;
    color: #4b5563;
    transform: translateY(-2px);
}

.btn-confirm {
    background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.btn-confirm:hover {
    background: linear-gradient(135deg, #ff3838 0%, #ff5a6a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 71, 87, 0.4);
}

.btn-confirm:active,
.btn-cancel:active {
    transform: translateY(0);
}

/* ===================================
   分享弹窗
   =================================== */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.share-modal.show {
    opacity: 1;
    visibility: visible;
}

.share-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.share-box {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.share-modal.show .share-box {
    transform: scale(1) translateY(0);
}

.share-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.share-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

.share-header {
    text-align: center;
    margin-bottom: 2rem;
}

.share-icon {
    display: inline-flex;
    margin-bottom: 1rem;
    animation: shareIconFloat 3s ease-in-out infinite;
}

@keyframes shareIconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.share-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.share-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

.share-options {
    display: grid;
    gap: 0.75rem;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.share-option:hover {
    border-color: #6366f1;
    background: #f9fafb;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.share-option:active {
    transform: translateX(2px);
}

.share-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.share-option-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.share-option-desc {
    font-size: 0.875rem;
    color: #6b7280;
    display: block;
}

/* 微信二维码 */
.wechat-qr {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.qr-header {
    margin-bottom: 1.5rem;
}

.qr-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qr-back:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.qr-content {
    text-align: center;
}

.qr-code {
    display: inline-flex;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}


/* ===================================
   评论区域样式
   =================================== */
.comments-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #f1f5f9;
}

.comments-area {
    width: 100%;
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2rem 0;
    padding-left: 1rem;
    position: relative;
}

.comments-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border-radius: 2px;
}

/* 评论列表 */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
}

.comment-body {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.comment-body:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.comment-author-avatar {
    flex-shrink: 0;
}

.comment-author-avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.comment-content-wrap {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.comment-author-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9375rem;
}

.comment-author-name a {
    color: #0f172a;
    text-decoration: none;
}

.comment-author-name a:hover {
    color: #10b981;
}

.comment-time {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.comment-awaiting-moderation {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.comment-text {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.comment-text p {
    margin: 0 0 0.5rem 0;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.comment-actions a {
    font-size: 0.8125rem;
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.comment-actions a:hover {
    color: #059669;
}

/* 子评论样式 */
.comment-list .children {
    list-style: none;
    padding-left: 3rem;
    margin-top: 1.5rem;
}

/* 评论导航 */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
}

.comment-navigation a {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.comment-navigation a:hover {
    color: #059669;
}

/* 评论表单 */
.comment-respond {
    margin-top: 3rem;
}

/* 登录提示框 */
.comment-login-required {
    text-align: center;
    padding: 2rem 2rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #86efac;
    border-radius: 16px;
    margin-top: 2rem;
}

.login-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.login-icon svg {
    width: 40px;
    height: 40px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.login-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
}

.login-description {
    font-size: 0.9375rem;
    color: #475569;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.login-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-login-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-login-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: white;
    color: #0f172a;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    color: #0f172a;
}

/* 已登录用户信息 */
.logged-in-as {
    padding: 1rem 1.25rem;
    background: #f0fdf4;
    border-left: 3px solid #10b981;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #0f172a;
    margin: 0 0 1.5rem 0;
}

.logged-in-as strong {
    color: #10b981;
    font-weight: 600;
}

.logged-in-as a {
    color: #64748b;
    text-decoration: none;
    margin-left: 0.5rem;
}

.logged-in-as a:hover {
    color: #ef4444;
}

.comment-reply-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1.5rem 0;
    padding-left: 1rem;
    position: relative;
}

.comment-reply-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    border-radius: 2px;
}

.comment-reply-title small {
    margin-left: 1rem;
}

.comment-reply-title small a {
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
}

.comment-reply-title small a:hover {
    color: #10b981;
}

.comment-form-custom {
    display: grid;
    gap: 1.25rem;
}

.comment-notes {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.form-notice {
    font-size: 0.875rem;
    color: #059669;
    margin: 0;
    padding: 0.75rem 1rem;
    background: #d1fae5;
    border-radius: 8px;
    font-weight: 500;
}

.required {
    color: #ef4444;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin: 0;
}

.comment-form-custom label {
    display: block;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.comment-form-custom input[type="text"],
.comment-form-custom input[type="email"],
.comment-form-custom input[type="url"],
.comment-form-custom textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #0f172a;
    background: white;
    transition: all 0.2s ease;
    font-family: inherit;
}

.comment-form-custom input[type="text"]:focus,
.comment-form-custom input[type="email"]:focus,
.comment-form-custom input[type="url"]:focus,
.comment-form-custom textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.comment-form-custom textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    margin: 0;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.submit-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}

.no-comments {
    padding: 2rem;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.9375rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comments-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }
    
    .comment-body {
        flex-direction: column;
        padding: 1.25rem;
    }
    
    .comment-list .children {
        padding-left: 1.5rem;
    }
    
    .comment-form-custom input[type="text"],
    .comment-form-custom input[type="email"],
    .comment-form-custom input[type="url"],
    .comment-form-custom textarea {
        font-size: 16px; /* 防止iOS自动缩放 */
    }
    
    .comment-login-required {
        padding: 1.5rem 1.25rem;
    }
    
    .login-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .login-title {
        font-size: 1.125rem;
    }
    
    .login-description {
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }
    
    .login-actions {
        flex-direction: column;
    }
    
    .btn-login-primary,
    .btn-register {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .comment-login-required {
        padding: 1.25rem 1rem;
    }
    
    .login-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .login-title {
        font-size: 1rem;
    }
    
    .login-description {
        font-size: 0.8125rem;
        margin-bottom: 1rem;
    }
}


/* ===================================
   移动端固定CTA按钮
   =================================== */
.mobile-fixed-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.875rem 1rem;
    animation: slideUpCTA 0.3s ease-out;
}

@keyframes slideUpCTA {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-cta-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
}

.mobile-cta-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-cta-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-cta-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.mobile-cta-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.mobile-cta-button:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    color: white;
}

.mobile-cta-button:active {
    transform: translateY(0);
}

/* 在移动端显示固定CTA */
@media (max-width: 768px) {
    .mobile-fixed-cta {
        display: block;
    }
    
    /* 为页面底部添加padding，避免被固定CTA遮挡 */
    .single-post {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .mobile-cta-button {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    .mobile-cta-button svg {
        width: 14px;
        height: 14px;
    }
}


/* ===================================
   主页重新设计 - 列表布局 + 侧边栏
   =================================== */

/* Hero 区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1rem;
}

.hero-stat strong {
    font-weight: 700;
}

.hero-stat-divider {
    opacity: 0.5;
}

/* 内容包装 - 左右布局 */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

/* 内容包装 - 左右布局 */
.content-wrapper .main-content {
    min-width: 0;
}

/* 右侧边栏 */
.sidebar-featured,
.archive-sidebar,
.article-sidebar {
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-self: start;
}

/* Widget 基础样式 */
.widget {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.widget-title,
.archive-widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-title svg,
.archive-widget-title svg {
    flex-shrink: 0;
}

/* 精选列表样式 */
.featured-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-item {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1rem;
}

.featured-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.featured-item-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.featured-item-link:hover {
    opacity: 0.8;
}

.featured-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-item-info {
    flex: 1;
    min-width: 0;
}

.featured-item-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.375rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-item-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.featured-item-rating svg {
    flex-shrink: 0;
}

.featured-item-rating span {
    font-weight: 600;
    color: var(--text-color);
}

/* Newsletter Widget */
.widget-newsletter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.widget-newsletter .widget-title {
    color: white;
    margin-bottom: 0.5rem;
}

.widget-newsletter-desc {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.widget-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.newsletter-input-widget {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.newsletter-input-widget::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input-widget:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.newsletter-button-widget {
    padding: 0.75rem 1rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 分类列表 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.category-list li a:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.category-count {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: white;
    color: #6b7280;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
}



/* ===================================
   详情页简化样式
   =================================== */

/* 简洁的统计信息 */
.page-stats-simple {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    color: #6b7280;
}

.stat-rating-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-rating-large svg {
    flex-shrink: 0;
}

.rating-score {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
}

.rating-label {
    color: #9ca3af;
    font-size: 0.875rem;
}

.stat-divider {
    color: #d1d5db;
}

.stat-views,
.stat-hot {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 简洁的标签 */
.page-tags-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.tag-simple {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-simple.tag-price {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 600;
}

.tag-simple.tag-license {
    background: #dbeafe;
    color: #1e40af;
}

.tag-simple:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-stats-simple {
        font-size: 0.875rem;
        gap: 0.75rem;
    }
    
    .rating-score {
        font-size: 1rem;
    }
    
    .rating-label {
        font-size: 0.8125rem;
    }
    
    .stat-views,
    .stat-hot {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .page-stats-simple {
        font-size: 0.8125rem;
        gap: 0.5rem;
    }
    
    .stat-rating-large {
        gap: 0.375rem;
    }
    
    .rating-score {
        font-size: 0.9375rem;
    }
    
    .rating-label {
        font-size: 0.75rem;
    }
    
    .stat-views,
    .stat-hot {
        font-size: 0.75rem;
    }
    
    .tag-simple {
        font-size: 0.8125rem;
        padding: 0.3rem 0.75rem;
    }
}

/* Widget Pool 样式 */
.sidebar-widget-pool {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* ===================================
   Homepage Discovery Layout
   =================================== */
.home-site-content {
    max-width: none;
    margin: 0 auto;
    padding: 0;
    display: block;
}

.home-hero {
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.08)),
        #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.home-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 4.25rem 2rem 3.25rem;
}

.home-hero-copy {
    max-width: 820px;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.875rem;
    color: var(--success-dark);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.home-hero h2 {
    max-width: 880px;
    margin: 0 0 1rem;
    color: var(--text-color);
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 800;
}

.home-hero p {
    max-width: 720px;
    margin: 0 0 1.75rem;
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.7;
}

.home-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    max-width: 820px;
    margin-bottom: 1rem;
}

.home-search-form input {
    width: 100%;
    min-height: 56px;
    padding: 0 1.125rem;
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-color);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.home-search-form input:focus {
    outline: none;
    border-color: var(--success-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.home-search-form button,
.home-newsletter-form button,
.home-submit-button {
    min-height: 56px;
    padding: 0 1.5rem;
    border: 0;
    border-radius: 10px;
    background: var(--success-color);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-search-form button:hover,
.home-newsletter-form button:hover,
.home-submit-button:hover {
    background: var(--success-hover);
    transform: translateY(-1px);
}

.home-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.home-quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.home-quick-links a:hover {
    border-color: var(--success-color);
    color: var(--success-dark);
}

.home-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    color: var(--text-light);
    font-size: 0.9375rem;
}

.home-stats strong {
    color: var(--text-color);
    font-weight: 800;
}

.home-content-wrapper {
    display: block;
    max-width: 1180px;
    padding: 3rem 2rem 0;
}

.home-main-content {
    width: 100%;
}

.home-section {
    margin-bottom: 3.5rem;
}

.home-category-grid,
.home-pick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-category-card,
.home-pick-card,
.home-comparison-card,
.home-newsletter-card,
.home-submit-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.home-category-card,
.home-pick-card,
.home-comparison-card {
    display: flex;
    flex-direction: column;
    min-height: 168px;
    padding: 1.25rem;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.home-category-card:hover,
.home-pick-card:hover,
.home-comparison-card:hover {
    border-color: var(--success-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.home-category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: var(--success-light);
    color: var(--success-dark);
    font-weight: 800;
}

.home-category-name,
.home-pick-card strong,
.home-comparison-card strong {
    color: var(--text-color);
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.35;
}

.home-category-desc,
.home-pick-card span:last-child,
.home-comparison-card span {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.home-category-count {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--success-dark);
    font-size: 0.875rem;
    font-weight: 700;
}

.home-featured-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-featured-list .post-link {
    grid-template-columns: 64px 1fr;
}

.home-featured-list .post-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
}

.home-featured-list .btn-visit-site {
    width: 100%;
    justify-content: center;
}

.home-pick-label {
    width: fit-content;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: var(--info-light);
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.home-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-comparison-card {
    min-height: 132px;
}

.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-trust-item {
    min-height: 150px;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.home-trust-item strong {
    display: block;
    margin-bottom: 0.625rem;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 800;
}

.home-trust-item span {
    display: block;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.home-cta-section {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1rem;
}

.home-newsletter-card,
.home-submit-card {
    padding: 1.5rem;
}

.home-newsletter-card h2,
.home-submit-card h2 {
    margin: 0 0 0.75rem;
    color: var(--text-color);
    font-size: 1.375rem;
}

.home-newsletter-card p,
.home-submit-card p {
    margin: 0 0 1.25rem;
    color: var(--text-light);
    line-height: 1.65;
}

.home-newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
}

.home-newsletter-form input {
    min-height: 56px;
    padding: 0 1rem;
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    font-size: 1rem;
}

.home-newsletter-card .newsletter-msg {
    margin-top: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.home-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1024px) {
    .home-category-grid,
    .home-pick-grid,
    .home-comparison-grid,
    .home-trust-grid,
    .home-featured-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-cta-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .home-hero-inner {
        padding: 3rem 1rem 2.25rem;
    }

    .home-hero h2 {
        font-size: 2.25rem;
    }

    .home-search-form,
    .home-newsletter-form {
        grid-template-columns: 1fr;
    }

    .home-search-form button,
    .home-newsletter-form button {
        width: 100%;
    }

    .home-content-wrapper {
        padding: 2rem 1rem 0;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .home-category-grid,
    .home-pick-grid,
    .home-comparison-grid,
    .home-trust-grid,
    .home-featured-list {
        grid-template-columns: 1fr;
    }

    .home-category-card,
    .home-pick-card,
    .home-comparison-card {
        min-height: auto;
    }
}

/* ===================================
   侧边栏订阅样式
   =================================== */
.sidebar-subscribe {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.subscribe-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.subscribe-desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 0.875rem 0;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subscribe-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #334155;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
    outline: none;
}

.subscribe-input::placeholder {
    color: #9ca3af;
}

.subscribe-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.subscribe-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.subscribe-btn:active {
    transform: translateY(0);
}

.subscribe-status {
    font-size: 0.75rem;
    margin: 0.5rem 0 0 0;
    min-height: 1rem;
    text-align: center;
}

.subscribe-status.success {
    color: #059669;
}

.subscribe-status.error {
    color: #dc2626;
}

/* ===================================
   Notification Toast (通知提示)
   =================================== */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.notification-toast.notification-hide {
    animation: slideOutRight 0.3s ease-out forwards;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-message {
    color: #1f2937;
    font-size: 0.9375rem;
    font-weight: 500;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ===================================
   Back to Top (返回顶部按钮)
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* ===================================
   Lightbox (图片查看器)
   =================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: zoom-out;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox .close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===================================
   Reading Progress (阅读进度条)
   =================================== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10001;
    background: transparent;
    pointer-events: none;
}

.reading-progress .progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ===================================
   工具类 Utilities
   =================================== */
.u-hidden {
    display: none !important;
}

.eye-closed {
    display: none;
}

/* 星级评分键盘焦点样式 */
.decimal-star:focus,
.star-rating .star:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Toast 通知 */
.form-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9375rem;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    max-width: 90vw;
    text-align: center;
}

.form-toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* 图库限制错误（admin） */
.gallery-limit-error {
    display: inline-block;
    margin-left: 10px;
    color: #dc2626;
    font-size: 13px;
    vertical-align: middle;
}

/* ===================================
   工具类/内联样式迁移
   =================================== */

/* 404页面面包屑区域 */
.error-breadcrumb-wrap {
    padding: 1.5rem 0 0 0;
}

/* Deals页面面包屑 */
.dp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.8125rem;
    color: #9ca3af;
    padding: 0.5rem 0;
    margin: 0;
}

.dp-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.dp-breadcrumb a:hover {
    color: var(--text-color);
}

.dp-breadcrumb-sep {
    color: #d1d5db;
}

.dp-breadcrumb-current {
    color: #374151;
    font-weight: 500;
}

/* Empty state grid full-width */
.dp-empty {
    grid-column: 1 / -1;
}

/* 注册页面 - 返回首页区域 */
.auth-back-home {
    text-align: center;
    margin-top: 24px;
}

.auth-back-home .auth-btn {
    display: inline-block;
    width: auto;
    padding: 12px 32px;
    text-decoration: none;
    color: #fff;
}

/* 注册页面 - 提交按钮间距 */
.auth-submit-mt {
    margin-top: 24px;
}

/* 提交页面 - 表单提示底部间距 */
.form-hint-mb {
    margin-bottom: 12px;
}

/* SVG 内联图标对齐 */
.svg-va-middle {
    vertical-align: middle;
}

.svg-va-text {
    vertical-align: text-bottom;
}

.svg-mr-1 {
    margin-right: 4px;
}

.svg-ml-1 {
    margin-left: 4px;
}

/* 评论区 SVG 图标 */
.comment-submit-icon {
    margin-right: 4px;
}

.comment-reply-btn svg {
    vertical-align: middle;
}

.comment-load-more-icon {
    margin-left: 4px;
}

/* 评论表单 - 用户图标对齐 */
.comment-poster-icon {
    vertical-align: -2px;
}

/* 评论/评价区域 - 登录提示图标 */
.review-login-icon {
    vertical-align: -5px;
    margin-right: 6px;
}

/* 分享弹窗 — 渐变背景（替代内联 style） */
.share-option:nth-child(1) .share-option-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.share-option:nth-child(2) .share-option-icon {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
}

.share-option:nth-child(3) .share-option-icon {
    background: linear-gradient(135deg, #1877F2 0%, #0d5dbf 100%);
}

.share-option:nth-child(4) .share-option-icon {
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
}

.share-option:nth-child(5) .share-option-icon {
    background: linear-gradient(135deg, #07C160 0%, #059048 100%);
}

.share-option:nth-child(6) .share-option-icon {
    background: linear-gradient(135deg, #EA4335 0%, #c1351e 100%);
}
