/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
    flex-wrap: nowrap; /* 防止换行 */
}

/* 确保logo不占用过多空间 */
.logo {
    flex-shrink: 0; /* 防止logo收缩 */
    margin-right: auto; /* logo靠左 */
}

/* Logo图片样式 */
.logo-link {
    display: inline-block;
    line-height: 0; /* 去除图片下方的空白 */
}

.logo-img {
    height: 36px; /* 桌面端logo高度 */
    width: auto; /* 宽度自动，保持比例 */
    display: block;
    transition: opacity 0.2s ease;
}

.logo-link:hover .logo-img {
    opacity: 0.8;
}

/* 确保导航菜单占据剩余空间并右对齐 */
.header .container > .nav {
    margin-left: auto !important; /* 强制右对齐 */
    flex-shrink: 0; /* 防止菜单收缩 */
}

/* 桌面端：确保导航菜单右对齐（覆盖所有可能的样式） */
@media screen and (min-width: 769px) {
    .header .container {
        justify-content: space-between !important;
    }
    
    .header .container > .nav {
        margin-left: auto !important;
        display: flex !important;
        position: static !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* 桌面端隐藏移动端悬浮下载框 */
    .mobile-download-bar {
        display: none !important;
    }
}

/* 保留原有样式作为备用（如果logo图片加载失败） */
.logo h1 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    display: none; /* 隐藏文字，使用图片 */
}

/* 移动端汉堡菜单按钮 - 现代化设计 */
.mobile-menu-toggle {
    display: none; /* 桌面端默认隐藏 */
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
    position: relative;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    order: 2; /* 确保在右侧 */
    margin-left: auto; /* 确保靠右对齐 */
}

.mobile-menu-toggle:hover {
    background-color: #f0f0f0;
}

.mobile-menu-toggle span {
    display: block;
    height: 2.5px;
    width: 100%;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle.active {
    background-color: #f0f0f0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background-color: #007bff;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: #007bff;
}

/* 移动端菜单遮罩层 - 现代化设计 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* 桌面端导航样式（默认样式，移动端会覆盖） */
.nav {
    display: flex !important;
    gap: 20px;
    align-items: center;
    position: static !important; /* 确保桌面端是静态定位 */
    width: auto !important; /* 确保桌面端宽度自适应 */
    height: auto !important; /* 确保桌面端高度自适应 */
    background: transparent !important; /* 确保桌面端背景透明 */
    flex-direction: row !important; /* 确保桌面端横向排列 */
    padding: 0 !important; /* 确保桌面端无额外内边距 */
    box-shadow: none !important; /* 确保桌面端无阴影 */
    margin-left: auto !important; /* PC端菜单右对齐 */
}

.nav-link {
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    width: auto; /* 确保桌面端宽度自适应 */
    text-align: center; /* 确保桌面端文字居中 */
    display: inline-block; /* 确保桌面端是行内块元素 */
    margin-bottom: 0; /* 确保桌面端无下边距 */
}

.nav-link:hover {
    background-color: #f0f0f0;
    color: #007bff;
    transform: none; /* 桌面端悬停不移动 */
}

.nav-link.active {
    background-color: #007bff;
    color: #fff;
    transform: none; /* 桌面端激活状态不移动 */
}

/* 使用帮助链接的角标徽章（世界一流方案：不影响文字对齐） */
.help-link {
    position: relative;
    /* 不添加任何会影响对齐的样式 */
}

.help-link .help-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    min-width: 28px;
    height: 18px;
    background: #ff6b35;
    color: #fff;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.4);
    transform-origin: center;
    pointer-events: none;
    z-index: 1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.95;
    }
}

.help-link:hover .help-badge {
    animation: badgePulse 1s ease-in-out infinite;
    box-shadow: 0 3px 6px rgba(255, 107, 53, 0.6);
    transform: scale(1.05);
}

/* 筛选器样式 */
.filters {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 500;
    color: #666;
}

.filter-btn {
    padding: 6px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.filter-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 主要内容区域 */
.main {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* 统计信息 */
.stats {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.stats strong {
    color: #333;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state p {
    margin-bottom: 10px;
}

/* 车贴网格 */
.chetie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.chetie-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.chetie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.chetie-image {
    width: 100%;
    aspect-ratio: 1 / 1;  /* 正方形比例 1:1 (原图是1024x1024) */
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chetie-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.chetie-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* 完整展示，不裁剪 */
    transition: transform 0.3s;
    display: block;
}

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background-color: #f5f5f5;
    font-size: 14px;
}

.chetie-info {
    padding: 15px;
}

.chetie-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    margin: 0 0 8px 0;
}

.chetie-title-link {
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    transition: color 0.3s;
}

.chetie-title-link:hover {
    color: #007bff;
    text-decoration: none;
}

.chetie-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
    overflow: hidden;
}

.chetie-category {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0; /* 分类不收缩，优先显示 */
}

.chetie-author {
    display: inline-block;
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1; /* 占据剩余空间，超出时隐藏 */
    min-width: 0; /* 允许flex子元素收缩 */
}

.chetie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: #e3f2fd;
    color: #1976d2;
    border-radius: 3px;
    font-size: 12px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.page-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* 详情页样式 */
.detail-main {
    padding: 30px 0;
}

/* SEO描述内容样式（清爽风格，方便搜索引擎抓取） */
.detail-description,
.list-description {
    margin-bottom: 24px;
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.breadcrumb {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #007bff;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.detail-image {
    width: 100%;
    aspect-ratio: 1 / 1;  /* 正方形比例 1:1 (原图是1024x1024) */
    background-color: transparent;
    border-radius: 8px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;  /* 限制最大宽度 */
    margin: 0 auto;  /* 居中显示 */
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* 完整展示，保持比例 */
    border-radius: 8px;
    box-shadow: none;
}

.no-image-large {
    width: 100%;
    aspect-ratio: 1 / 1;  /* 正方形比例 1:1 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #999;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    line-height: 1.4;
}

/* 统一所有信息项的样式 */
.detail-meta,
.detail-price,
.detail-tags,
.detail-format,
.detail-size {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 16px;
    min-height: 44px;
}

.meta-label,
.price-label,
.tags-label,
.format-label,
.size-label {
    font-weight: 500;
    color: #333;
    min-width: 70px;
    flex-shrink: 0;
}

.meta-value {
    color: #007bff;
    font-weight: 500;
}

.category-link:hover {
    text-decoration: underline;
}

.price-value {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b6b;
}

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

.detail-stats {
    display: flex;
    gap: 20px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    font-size: 14px;
    color: #666;
    padding-top: 8px;
}

.stat-item {
    padding-right: 20px;
    border-right: 1px solid #ddd;
}

.stat-item:last-child {
    border-right: none;
}


.info-label {
    font-weight: 500;
    color: #333;
    min-width: 70px;
    font-size: 14px;
    flex-shrink: 0;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #fff;
    color: #333;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.action-btn:hover {
    background-color: #f5f5f5;
    border-color: #007bff;
    color: #007bff;
}

.action-btn.active,
.action-btn:active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.download-btn {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.download-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

.like-btn.active {
    background-color: #ff4757;
    color: #fff;
    border-color: #ff4757;
}

.like-btn.active:hover {
    background-color: #ee3342;
    border-color: #ee3342;
}

.like-btn.active svg .like-icon-path {
    fill: #fff;
    stroke: #fff;
}

.favorite-btn.active {
    background-color: #ffa502;
    color: #fff;
    border-color: #ffa502;
}

.favorite-btn.active:hover {
    background-color: #e89000;
    border-color: #e89000;
}

.favorite-btn.active svg path {
    fill: #fff;
    stroke: #fff;
}

.action-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.like-count {
    font-weight: 600;
    margin-left: 2px;
}

/* 详情页导航 */
.detail-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.nav-prev,
.nav-next {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.nav-prev:hover,
.nav-next:hover {
    border-color: #007bff;
    color: #007bff;
    background-color: #f0f8ff;
}

.nav-back {
    padding: 12px 24px;
    margin: 0 20px;
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.nav-back:hover {
    background-color: #0056b3;
}

/* 相关推荐 */
.related-section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.refresh-btn:hover {
    background: #f5f5f5;
    border-color: #007bff;
    color: #007bff;
}

.refresh-btn:active {
    transform: scale(0.98);
}

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

.refresh-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.refresh-btn:hover .refresh-icon {
    transform: rotate(180deg);
}

.refresh-btn.loading .refresh-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.related-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 1px solid #e8e8e8;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.related-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-image {
    width: 100%;
    aspect-ratio: 1 / 1;  /* 正方形比例 1:1 (原图是1024x1024) */
    overflow: hidden;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* 完整展示，不裁剪 */
    display: block;
    transition: transform 0.3s;
    border-radius: 4px;
}

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

.no-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background-color: #f5f5f5;
    font-size: 12px;
}

.related-title {
    padding: 12px;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    background-color: #fff;
    transition: color 0.3s;
}

.related-card:hover .related-title {
    color: #007bff;
}

/* 相关搜索区域样式 */
.related-search-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e8e8e8;
}

.related-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.search-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.search-tag:hover {
    color: #007bff;
    border-color: #007bff;
}

/* 底部样式 */
.footer {
    background-color: #2c2c2c;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #444;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer 主要内容区域 */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

/* Footer 左侧：免责声明 */
.footer-left {
    text-align: left;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 15px 0;
}

.footer-disclaimer {
    color: #bbb;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
    text-align: left;
}

/* Footer 右侧：链接区域 */
.footer-right {
    text-align: left;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
}

.footer-link-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 12px 0;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin-bottom: 8px;
}

.footer-link {
    color: #bbb;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    display: inline-block;
}

.footer-link:hover {
    color: #007bff;
}

/* Footer 公司信息区域 */
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-copyright-text,
.footer-icp-text,
.footer-company-text,
.footer-credit-text,
.footer-license-text {
    color: #bbb;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.footer-icp-text .icp-number,
.footer-company-text .company-name,
.footer-credit-text .credit-code,
.footer-license-text .license-code {
    color: #999;
}

/* 兼容旧样式 */
.footer p {
    color: #ccc;
}

/* 响应式设计 - 移动端菜单优化 */
@media screen and (max-width: 768px) {
    /* 移动端头部样式 */
    .header .container {
        padding: 12px 16px !important;
        position: relative !important;
        flex-wrap: nowrap !important;
    }
    
    /* 移动端logo图片样式 */
    .logo-img {
        height: 30px !important; /* 移动端logo高度 */
    }
    
    .logo h1 {
        font-size: 20px !important;
        display: none !important; /* 移动端也隐藏文字 */
    }
    
    /* 显示汉堡菜单按钮，隐藏桌面端导航 */
    .mobile-menu-toggle {
        display: flex !important;
        order: 2 !important; /* 确保按钮在右侧 */
        margin-left: auto !important; /* 确保按钮靠右 */
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important; /* 确保可点击 */
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0, 123, 255, 0.2) !important; /* 移动端点击高亮 */
        z-index: 1001 !important; /* 确保在最上层 */
    }
    
    /* 移动端：隐藏桌面端导航（默认隐藏，点击后滑出） */
    .nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 320px !important;
        max-width: 90vw !important;
        height: 100vh !important;
        background: #ffffff !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
        gap: 0 !important;
        box-shadow: -4px 0 24px rgba(0,0,0,0.15) !important;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 999 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
        margin-left: 0 !important;
        visibility: hidden !important; /* 默认隐藏 */
        opacity: 0 !important;
        pointer-events: none !important; /* 默认不可点击 */
    }
    
    /* 移动端：菜单激活时显示并滑入 */
    .nav.active {
        display: flex !important; /* 激活时显示 */
        right: 0 !important;
        visibility: visible !important; /* 激活时可见 */
        opacity: 1 !important;
        pointer-events: auto !important; /* 激活时可点击 */
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, visibility 0s !important;
    }
    
    /* 移动端菜单头部标题 */
    .nav::before {
        content: '菜单';
        display: flex;
        align-items: center;
        justify-content: center;
        height: 60px;
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        position: sticky;
        top: 0;
        z-index: 1;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    }
    
    .nav-link {
        width: 100% !important;
        padding: 16px 20px 16px 24px !important;
        border-radius: 0 !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        margin-bottom: 0 !important;
        position: relative !important;
        white-space: normal !important;
        background: transparent !important;
        border-left: 4px solid transparent !important;
        color: #333 !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }
    
    .nav-link:first-of-type {
        margin-top: 0 !important;
    }
    
    .nav-link:last-of-type {
        border-bottom: none !important;
    }
    
    .nav-link:hover {
        background-color: #f0f7ff !important;
        transform: none !important;
        color: #007bff !important;
        border-left-color: #007bff !important;
        padding-left: 28px !important;
    }
    
    .nav-link.active {
        background-color: #007bff !important;
        color: #fff !important;
        box-shadow: none !important;
        font-weight: 600 !important;
        transform: none !important;
        border-left-color: #007bff !important;
        border-left-width: 4px !important;
    }
    
    .nav-link.active::after {
        content: '';
        position: absolute;
        right: 24px;
        width: 6px;
        height: 6px;
        background: #007bff;
        border-radius: 50%;
        animation: navDotPulse 2s ease-in-out infinite;
    }
    
    @keyframes navDotPulse {
        0%, 100% {
            opacity: 1;
            transform: scale(1);
        }
        50% {
            opacity: 0.6;
            transform: scale(1.2);
        }
    }
    
    /* 移动端帮助链接角标调整 */
    .help-link .help-badge {
        position: static !important;
        margin-left: 8px !important;
        font-size: 10px !important;
        padding: 3px 6px !important;
        min-width: 28px !important;
        height: 18px !important;
        top: auto !important;
        right: auto !important;
        animation: badgePulse 2s ease-in-out infinite !important;
        background: #ff6b35 !important;
        color: #fff !important;
        border-radius: 3px !important;
        box-shadow: 0 2px 4px rgba(255, 107, 53, 0.4) !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }
    
    .chetie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .detail-description,
    .list-description {
        padding: 12px 16px;
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    /* Footer 移动端样式 */
    .footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
        padding-bottom: 25px;
    }
    
    .footer-left,
    .footer-right {
        text-align: left;
    }
    
    .footer-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-disclaimer {
        font-size: 12px;
        line-height: 1.7;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-link-group {
        margin-bottom: 0;
    }
    
    .footer-link-title {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .footer-link {
        font-size: 12px;
    }
    
    .footer-info {
        gap: 6px;
    }
    
    .footer-copyright-text,
    .footer-icp-text,
    .footer-company-text,
    .footer-credit-text,
    .footer-license-text {
        font-size: 11px;
        line-height: 1.5;
    }
}

/* 登录/注册模态框样式 */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.auth-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10001;
}

.auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.auth-modal-close:hover {
    color: #333;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 12px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab:hover {
    color: #333;
}

.auth-tab.active {
    color: #333;
    border-bottom-color: #333;
}

.auth-form h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.form-group input[type="tel"],
.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #333;
}

.code-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%; /* 和手机号输入框一样宽 */
    box-sizing: border-box; /* 确保包含padding和border */
}

.code-input-group input {
    flex: 1; /* 验证码输入框占据主要空间，自动填充剩余空间 */
    min-width: 160px; /* 增加最小宽度，让输入框更宽 */
    padding: 12px;
    text-align: center; /* 文字居中 */
    font-size: 16px; /* 稍大字体，更易读 */
    letter-spacing: 2px; /* 字符间距，数字更清晰 */
    box-sizing: border-box; /* 确保包含padding和border */
}

.send-code-btn {
    padding: 12px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    cursor: not-allowed;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    flex: 0 0 auto; /* 按钮固定宽度，不伸缩 */
    min-width: 110px; /* 按钮最小宽度，确保文字不拥挤 */
    box-sizing: border-box; /* 确保包含padding和border */
}

/* 按钮可用状态（手机号正确时）- 使用绿色，区别于登录按钮的蓝色 */
.send-code-btn.enabled {
    background: #28a745;
    border-color: #28a745;
    color: #ffffff;
    cursor: pointer;
}

.send-code-btn.enabled:hover:not(:disabled) {
    background: #218838;
    border-color: #1e7e34;
}

.send-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-switch {
    margin-top: 10px;
}

.form-switch label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.form-switch input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    margin-top: 10px;
}

.auth-submit-btn:hover:not(:disabled) {
    background-color: #0056b3;
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-switch-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #999;
}

.auth-switch-text a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch-text a:hover {
    text-decoration: underline;
}

.auth-description {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .auth-modal-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .auth-form h2 {
        font-size: 20px;
    }
    
    .code-input-group {
        flex-direction: row; /* 保持在同一行 */
        gap: 8px;
        width: 100%; /* 和手机号输入框一样宽 */
        box-sizing: border-box; /* 确保包含padding和border */
    }
    
    .code-input-group input {
        flex: 1; /* 验证码输入框占据主要空间，自动填充剩余空间 */
        min-width: 120px; /* 移动端增加最小宽度，让输入框更宽 */
        padding: 12px 8px;
        font-size: 16px; /* 移动端也使用较大字体 */
        letter-spacing: 2px;
        box-sizing: border-box; /* 确保包含padding和border */
    }
    
    .send-code-btn {
        flex: 0 0 auto; /* 按钮固定宽度 */
        padding: 12px 16px; /* 移动端适中的内边距 */
        font-size: 13px; /* 移动端稍小的字体 */
        min-width: 90px; /* 移动端按钮最小宽度 */
        box-sizing: border-box; /* 确保包含padding和border */
    }
}

/* 个人中心样式 - 左右布局 */
.profile-layout {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    align-items: flex-start;
}

/* 左侧菜单 */
.profile-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.profile-user-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.user-avatar {
    margin-bottom: 15px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    margin: 0 auto;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.user-phone {
    font-size: 14px;
    color: #999;
}

.profile-menu {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    margin-bottom: 4px;
    position: relative;
}

.profile-menu-item:hover {
    background: #f5f5f5;
    color: #333;
}

.profile-menu-item.active {
    background: #007bff;
    color: #fff;
}

.menu-text {
    flex: 1;
    font-size: 15px;
}

.menu-badge {
    background: rgba(255, 255, 255, 0.3);
    color: inherit;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.profile-menu-item.active .menu-badge {
    background: rgba(255, 255, 255, 0.25);
}

/* 右侧功能区 */
.profile-content {
    flex: 1;
    min-width: 0;
}

.profile-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: none;
}

.profile-panel.active {
    display: block;
}

.panel-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.panel-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.panel-body {
    padding: 25px;
}

.profile-info {
    max-width: 600px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    min-width: 70px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
}

.info-value {
    font-size: 14px;
    color: #333;
    flex: 1;
    min-width: 0;
}

.info-value.nickname-container,
.nickname-container {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    position: relative;
}

.nickname-display {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nickname-edit {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.nickname-input {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.nickname-input:focus {
    border-color: #1E40AF;
}

.btn-edit,
.btn-save,
.btn-cancel {
    padding: 6px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    color: #333;
    transition: all 0.2s;
    outline: none;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-edit {
    border-color: #1E40AF !important;
    color: #1E40AF !important;
    background: #fff !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-edit:hover {
    border-color: #1e3a8a !important;
    color: #1e3a8a !important;
    background: #f0f4ff !important;
}

.btn-save {
    background: #1E40AF;
    color: #fff;
    border-color: #1E40AF;
}

.btn-save:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
}

.btn-save:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.btn-cancel {
    border-color: #ddd;
}

.btn-cancel:hover {
    border-color: #999;
    color: #666;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.profile-item {
    display: block;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
}

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

.profile-item-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    margin-bottom: 10px;
}

.profile-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-item-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-item-time {
    font-size: 12px;
    color: #999;
}

.empty-tip {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 14px;
}

/* 个人中心页面内的导航链接样式（不影响头部导航栏） */
.profile-menu .nav-link.active {
    color: #333;
    font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    .profile-sidebar {
        width: 100%;
    }
    
    .profile-menu {
        display: flex;
        overflow-x: auto;
        padding: 10px;
        gap: 8px;
    }
    
    .profile-menu-item {
        flex-shrink: 0;
        white-space: nowrap;
        margin-bottom: 0;
    }
    
    .profile-user-card {
        padding: 20px;
    }
    
    .panel-header,
    .panel-body {
        padding: 15px;
    }
    
    .profile-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    
    .info-label {
        min-width: 70px;
        font-size: 13px;
    }
    
    .info-value {
        font-size: 13px;
    }
}

/* Toast 提示框样式 */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    cursor: pointer;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: #10b981;
    color: #fff;
}

.toast-error .toast-icon {
    background: #ef4444;
    color: #fff;
}

.toast-warning .toast-icon {
    background: #f59e0b;
    color: #fff;
}

.toast-info .toast-icon {
    background: #3b82f6;
    color: #fff;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.toast-close {
    width: 20px;
    height: 20px;
    border: none;
    background: none;
    color: #999;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

/* 确认框和提示框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.modal-show {
    opacity: 1;
}

.modal-overlay.modal-hide {
    opacity: 0;
}

.confirm-modal,
.alert-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.modal-show .confirm-modal,
.modal-overlay.modal-show .alert-modal {
    transform: scale(1);
}

.modal-overlay.modal-hide .confirm-modal,
.modal-overlay.modal-hide .alert-modal {
    transform: scale(0.9);
}

.confirm-header,
.alert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.confirm-title,
.alert-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.confirm-close,
.alert-close {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #999;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-close:hover,
.alert-close:hover {
    background: #f5f5f5;
    color: #333;
}

.confirm-body,
.alert-body {
    padding: 24px;
    text-align: center;
}

.confirm-icon,
.alert-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f0f4ff;
    color: #3b82f6;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.alert-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.confirm-message,
.alert-message {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.confirm-footer,
.alert-footer {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    justify-content: flex-end;
}

.alert-footer {
    justify-content: center;
}

.confirm-btn,
.alert-btn {
    padding: 10px 24px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

.confirm-btn-cancel {
    background: #fff;
    color: #666;
}

.confirm-btn-cancel:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.confirm-btn-ok {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.confirm-btn-ok:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.alert-btn-ok {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    min-width: 100px;
}

.alert-btn-ok:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.confirm-btn:focus,
.alert-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
    
    .confirm-modal,
    .alert-modal {
        width: 95%;
        max-width: none;
    }
    
    .confirm-footer {
        flex-direction: column-reverse;
    }
    
    .confirm-btn {
        width: 100%;
    }
    
    .alert-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .section-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .refresh-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .refresh-icon {
        width: 14px;
        height: 14px;
    }
    
    /* 相关搜索区域移动端样式 */
    .related-search-section {
        margin-top: 30px;
        padding-top: 30px;
    }
    
    .related-search-tags {
        gap: 8px;
    }
    
    .search-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* 移动端详情页按钮布局优化 */
    .detail-actions {
        display: flex;
        flex-direction: row; /* 改为横向排列 */
        flex-wrap: wrap; /* 允许换行 */
        gap: 12px;
        width: 100% !important; /* 确保容器宽度为100% */
        box-sizing: border-box !important;
    }
    
    /* 下载按钮单独一行，细长条设计，带发散动画 - 世界一流方案 */
    .detail-actions > .download-btn {
        flex-basis: 100% !important; /* 占据整行 */
        width: 100% !important; /* 全宽 */
        height: 44px !important; /* 固定高度，细长条设计 - 必须固定 */
        min-height: 44px !important; /* 最小高度 */
        max-height: 44px !important; /* 最大高度，防止被其他样式覆盖 */
        padding: 0 20px !important; /* 细长条：只有左右内边距，上下为0 */
        margin: 0 !important; /* 清除外边距 */
        font-size: 15px !important; /* 适中的字体大小 */
        font-weight: 600 !important; /* 加粗字体 */
        justify-content: center !important; /* 内容居中 */
        align-items: center !important; /* 垂直居中 */
        position: relative; /* 用于动画效果 */
        animation: downloadPulse 2s ease-in-out infinite; /* 发散动画 */
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25); /* 适中的阴影 */
        border-radius: 6px; /* 适中的圆角 */
        line-height: 1 !important; /* 紧凑的行高，防止文字撑高 */
        display: flex !important; /* 确保flex布局 */
        box-sizing: border-box !important; /* 确保padding包含在高度内 */
        overflow: hidden !important; /* 防止内容溢出 */
    }
    
    /* 确保下载按钮内的图标和文字不撑高 */
    .detail-actions > .download-btn .action-icon,
    .detail-actions > .download-btn svg {
        height: 18px !important;
        width: 18px !important;
        flex-shrink: 0;
    }
    
    .detail-actions > .download-btn span {
        line-height: 1 !important;
        display: inline-block;
    }
    
    /* 下载按钮发散动画效果 - 世界一流的吸引效果 */
    @keyframes downloadPulse {
        0%, 100% {
            box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.5), 0 2px 8px rgba(0, 123, 255, 0.25);
        }
        50% {
            box-shadow: 0 0 0 6px rgba(0, 123, 255, 0), 0 3px 10px rgba(0, 123, 255, 0.3);
        }
    }
    
    /* 点赞和收藏按钮放在一行，总宽度和下载按钮一致（100%） */
    .detail-actions > .like-btn,
    .detail-actions > .favorite-btn {
        flex: 1 1 calc(50% - 6px) !important; /* 平分空间，每个按钮占50%减去一半gap */
        min-width: 0 !important; /* 允许收缩 */
        max-width: calc(50% - 6px) !important; /* 限制最大宽度 */
        width: calc(50% - 6px) !important; /* 明确宽度：50% - 6px（gap的一半） */
        box-sizing: border-box !important; /* 确保padding和border包含在宽度内 */
        margin: 0 !important; /* 清除外边距 */
    }
    
    /* 计算验证：按钮1(50% - 6px) + gap(12px) + 按钮2(50% - 6px) = 100% */
    
    /* 移动端页脚底部间距，避免被悬浮下载框遮挡 */
    .footer {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }
    
    /* 移动端悬浮下载框 - App风格 */
    .mobile-download-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
        z-index: 10000; /* 提高z-index，确保在最上层，不被其他元素遮挡 */
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid #e8e8e8;
        transform: translateY(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: auto; /* 确保可以接收点击事件 */
    }
    
    .mobile-download-content {
        display: flex;
        align-items: center;
        gap: 12px;
        max-width: 100%;
    }
    
    .mobile-download-preview {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        border-radius: 8px;
        overflow: hidden;
        background: #f5f5f5;
        border: 1px solid #e8e8e8;
    }
    
    .mobile-download-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .mobile-download-no-image {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #999;
        background: #f5f5f5;
    }
    
    .mobile-download-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .mobile-download-title {
        font-size: 15px;
        font-weight: 600;
        color: #333;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }
    
    .mobile-download-category {
        font-size: 11px;
        color: #666;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .mobile-download-action {
        flex-shrink: 0;
    }
    
    .mobile-download-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 24px;
        background-color: #007bff; /* 纯蓝色，和详情页一致 */
        color: #fff; /* 白色文字 */
        border: 1px solid #007bff; /* 蓝色边框 */
        border-radius: 6px; /* 和详情页一致的圆角 */
        font-size: 14px; /* 和详情页一致的字体大小 */
        font-weight: 500; /* 和详情页一致的字体粗细 */
        cursor: pointer;
        transition: all 0.3s; /* 和详情页一致的过渡效果 */
        text-decoration: none;
        white-space: nowrap;
        min-width: 120px;
        position: relative; /* 确保按钮在正确的层叠上下文中 */
        z-index: 1; /* 确保按钮在下载框内容之上 */
        pointer-events: auto; /* 确保可以接收点击事件 */
        -webkit-tap-highlight-color: rgba(0, 123, 255, 0.2); /* 移动端点击高亮 */
    }
    
    .mobile-download-btn:hover {
        background-color: #f5f5f5; /* 悬停时背景变浅 */
        border-color: #007bff; /* 边框保持蓝色 */
        color: #007bff; /* 文字变蓝色 */
    }
    
    .mobile-download-btn:active {
        background-color: #007bff; /* 点击时恢复蓝色背景 */
        color: #fff; /* 文字变白色 */
        border-color: #007bff;
    }
    
    .mobile-download-btn svg {
        flex-shrink: 0;
    }
    
    .mobile-download-btn span {
        flex-shrink: 0;
    }
}

