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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, #f0f4ff 0%, #f5f7fa 100%);
    min-height: 100vh;
}

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

/* 顶部导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    position: relative;
}

/* 汉堡菜单按钮 - 桌面端隐藏 */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

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

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

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

/* 移动端左侧抽屉菜单 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1099;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

.mobile-nav-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100%;
    background: #fff;
    z-index: 1100;
    padding: 20px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-dropdown.open {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 4px;
}

.mobile-nav-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: #f0f4ff;
    color: #667eea;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.nav-item {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    color: #667eea;
}

.nav-right {
    display: flex;
    align-items: center;
}

.nav-search-form {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 20px;
    padding: 6px 12px;
}

.nav-search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 6px;
    font-size: 14px;
    width: 150px;
}

.nav-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

/* 主标题和搜索区域 */
.header {
    background: linear-gradient(135deg, #f0f4ff 0%, #e5e1e9 100%);
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.header .container {
    position: relative;
    z-index: 1;
}

.main-title {
    font-size: 36px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.main-subtitle {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* 搜索框 */
.search-box {
    display: flex;
    max-width: 1200px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.search-input {
    flex: 1;
    border: none;
    padding: 18px 24px;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #5a6fd6;
}

/* 快速分类 */
.quick-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.quick-category {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    font-weight: 600;
}

.quick-category:hover {
    background: white;
    color: #764ba2;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cat-count {
    margin-left: 4px;
    color: rgba(102, 126, 234, 0.7);
    font-size: 12px;
}

/* 热门工具 */
.hot-tools {
    padding: 40px 0;
    background: transparent;
}

.section-main-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    padding-left: 12px;
    border-left: 4px solid #667eea;
}

.hot-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hot-tool-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.hot-tool-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #667eea;
}

.hot-tool-img {
    display: block;
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f0f4ff;
    cursor: pointer;
    transition: opacity 0.25s;
}

.hot-tool-img:hover {
    opacity: 0.85;
}

.hot-tool-img img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.hot-tool-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.hot-tool-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.25s;
}

.hot-tool-title a:hover {
    color: #667eea;
}

.hot-tool-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 最新收录 */
.new-tools {
    padding: 40px 0;
    background: transparent;
}

.new-tools-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.new-tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px;
    transition: all 0.25s;
}

.new-tool-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.new-tool-img {
    flex-shrink: 0;
    width: 96px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
    transition: opacity 0.25s;
}

.new-tool-img:hover {
    opacity: 0.85;
}

.new-tool-img img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.new-tool-info {
    flex: 1;
    min-width: 0;
}

.new-tool-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.new-tool-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.25s;
}

.new-tool-title a:hover {
    color: #667eea;
}

.new-tool-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分类工具区域 */
.category-tools-section {
    margin-bottom: 50px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.category-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    padding-left: 12px;
    border-left: 4px solid #667eea;
}

.sub-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.sub-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.6);
    color: #666;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    transition: all 0.3s;
}

.sub-category:hover,
.sub-category.active {
    background: #667eea;
    color: white;
}

.sub-category.more {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
    padding: 6px 18px;
    font-weight: 500;
    margin-left: auto;
}

.sub-category.more:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.sub-category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f3ff;
    color: #7c3aed;
    text-decoration: none;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1.5px solid #e8e4f8;
    letter-spacing: 0.3px;
}

.sub-category-tag:hover {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.3);
    transform: translateY(-1px);
}

.sub-category-tag.active {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
    font-weight: 600;
}

.sub-category-tag .sub-count {
    font-size: 11px;
    opacity: 0.75;
    margin-left: 2px;
    font-weight: 400;
}

/* 3 列网格工具 */
.tools-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grid-tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 14px;
    transition: all 0.25s;
}

.grid-tool-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d0d0d0;
}

.grid-tool-img {
    flex-shrink: 0;
    width: 96px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
    transition: opacity 0.25s;
}

.grid-tool-img:hover {
    opacity: 0.85;
}

.grid-tool-img img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.grid-tool-info {
    flex: 1;
    min-width: 0;
}

.grid-tool-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.4;
}

.grid-tool-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.25s;
}

.grid-tool-title a:hover {
    color: #667eea;
}

.grid-tool-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main {
    padding: 40px 0;
}

/* 工具图片占位符 */
.tool-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 48px;
    font-weight: bold;
}

.tool-img-placeholder.large {
    font-size: 64px;
}

/* 工具详情页 */
.tool-detail {
    padding: 30px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 14px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

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

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: #666;
}

.tool-detail-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
}

.tool-detail-header {
    padding: 30px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e5e1e9 100%);
}

.detail-layout {
    display: flex;
    gap: 30px;
}

.detail-main {
    flex: 1;
    min-width: 0;
}

.detail-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.popular-tools-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 16px;
}

.popular-tools-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 4px solid #667eea;
}

.popular-tools-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.popular-tool-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s;
}

.popular-tool-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #667eea;
}

.popular-tool-img {
    display: block;
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f0f4ff;
    transition: opacity 0.25s;
}

.popular-tool-img:hover {
    opacity: 0.85;
}

.popular-tool-img img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.popular-tool-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.popular-tool-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.25s;
}

.popular-tool-title a:hover {
    color: #667eea;
}

/* 标签云 */
.tag-cloud-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 16px;
    margin-top: 20px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 16px;
    border: 1px solid;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.25s;
}

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

.tool-detail-title {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.tool-detail-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
}

.tool-detail-category {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    background: rgba(102, 126, 234, 0.08);
    padding: 3px 12px;
    border-radius: 12px;
    transition: all 0.25s;
}

.tool-detail-category:hover {
    background: rgba(102, 126, 234, 0.15);
}

.tool-detail-body {
    padding: 20px 30px 30px;
}

.tool-detail-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 13px;
    color: #888;
}

.meta-item i {
    margin-right: 4px;
}

.meta-divider {
    color: #ddd;
}

.tool-detail-visit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 14px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s;
    margin-left: 6px;
}

.tool-detail-visit:hover {
    background: #5a6fd6;
}

.tool-detail-like {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
    color: #ef4444;
    border: 1.5px solid #fecaca;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-left: auto;
    letter-spacing: 0.3px;
}

.tool-detail-like:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border-color: #f87171;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.tool-detail-like.liked {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-color: #ef4444;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.tool-detail-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.tool-detail-content-body {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.tool-detail-content-body h1 {
    font-size: 1.6em;
    font-weight: bold;
    color: #333;
    margin: 1.2em 0 0.6em;
    line-height: 1.4;
}

.tool-detail-content-body h2 {
    font-size: 1.35em;
    font-weight: bold;
    color: #333;
    margin: 1.2em 0 0.6em;
    line-height: 1.4;
}

.tool-detail-content-body h3 {
    font-size: 1.15em;
    font-weight: 600;
    color: #333;
    margin: 1em 0 0.5em;
    line-height: 1.4;
}

.tool-detail-content-body p {
    margin-bottom: 0.8em;
}

.tool-detail-content-body ul,
.tool-detail-content-body ol {
    padding-left: 2em;
    margin-bottom: 0.8em;
}

.tool-detail-content-body li {
    margin-bottom: 0.4em;
    line-height: 1.8;
}

.tool-detail-content-body blockquote {
    border-left: 4px solid #667eea;
    padding: 10px 16px;
    margin: 1em 0;
    background: #f8f9fa;
    color: #666;
    border-radius: 0 6px 6px 0;
}

.tool-detail-content-body pre {
    background: #f5f5f5;
    padding: 14px 18px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 14px;
    margin: 1em 0;
    line-height: 1.6;
}

.tool-detail-content-body code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
}

.tool-detail-content-body pre code {
    background: none;
    padding: 0;
}

.tool-detail-content-body hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 1.2em 0;
}

.tool-detail-content-body a {
    color: #667eea;
    text-decoration: none;
}

.tool-detail-content-body a:hover {
    text-decoration: underline;
}

.tool-detail-content-body img {
    width: 100%;
    border-radius: 8px;
    margin: 0.8em 0;
}

.tool-detail-content-body iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    margin: 1em 0;
    border: none;
}

.tool-detail-content-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.tool-detail-content-body table td,
.tool-detail-content-body table th {
    border: 1px solid #ddd;
    padding: 8px 12px;
    line-height: 1.6;
}

.tool-detail-content-body table th {
    background: #f8f9fa;
    font-weight: bold;
}

.related-tools {
    margin-top: 40px;
}

/* 搜索结果信息 */
.search-result-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* 分页 */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination ul {
    display: inline-flex;
    list-style: none;
    gap: 5px;
}

.pagination li a {
    display: block;
    padding: 8px 14px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination li a:hover {
    background: #667eea;
    color: white;
}

.pagination li.active a {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination li.ellipsis {
    padding: 8px 4px;
    color: #999;
}

/* 通用按钮 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: #5a6fd6;
}

/* 页脚 */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

.footer p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.footer p:first-child {
    font-weight: 600;
    color: #333;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer-stats {
    color: #666 !important;
    font-size: 13px !important;
    font-weight: normal !important;
}

.footer-stats strong {
    color: #667eea !important;
    font-weight: 700;
}

.rss-link {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    margin-left: 2px;
}

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

.friend-links {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.friend-links-title {
    color: #999;
    font-size: 13px;
}

.friend-links a {
    display: inline-block;
    margin: 0 8px;
    color: #666;
    font-size: 13px;
    transition: color 0.2s;
}

.friend-links a:hover {
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-content {
        justify-content: center;
    }

    .hamburger {
        display: flex;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-left {
        gap: 15px;
    }

    .nav-menu {
        display: none;
    }

    .main-title {
        font-size: 24px;
    }

    .main-subtitle {
        font-size: 14px;
    }

    .search-box {
        flex-direction: row;
    }

    .search-input {
        padding: 14px 16px;
        font-size: 14px;
    }

    .search-btn {
        padding: 14px 24px;
        font-size: 14px;
        white-space: nowrap;
    }

    .hot-tools-grid,
    .new-tools-list,
    .tools-grid-3,
    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tool-detail-header {
        text-align: center;
    }

    .tool-detail-meta {
        justify-content: center;
    }

    .detail-layout {
        flex-direction: column;
    }

    .detail-sidebar {
        width: 100%;
        position: static;
    }

    .popular-tool-img {
        height: 150px;
    }

}

@media (max-width: 480px) {
    .hot-tools-grid,
    .new-tools-list,
    .tools-grid-3,
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* 评论区域 */
.comments-section {
    margin-top: 30px;
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.comments-section .section-main-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    padding-left: 12px;
    border-left: 4px solid #667eea;
    margin-bottom: 20px;
}

.comments-count {
    font-size: 14px;
    font-weight: 400;
    color: #94a3b8;
}

.comment-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.comment-alert.success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.comment-alert.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.comment-form {
    margin-bottom: 24px;
}

.comment-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.comment-input:focus {
    outline: none;
    border-color: #667eea;
}

.comment-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.comment-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.comment-submit-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-submit-btn:hover {
    background: #5a6fd6;
}

.no-comments {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
    font-size: 14px;
}

.comments-list {
    margin-top: 8px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.comment-item.reply {
    padding-left: 24px;
    border-left: 3px solid #e2e8f0;
    margin-left: 20px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
}

.comment-avatar.admin-avatar {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

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

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.comment-author {
    font-weight: 600;
    color: #1e293b;
}

.comment-author.admin-label {
    color: #f59e0b;
}

.comment-date {
    color: #94a3b8;
}

.comment-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    word-break: break-word;
}

.comment-reply-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 14px;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s;
}

.comment-reply-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

.comment-replies {
    margin-top: 12px;
    margin-left: 12px;
}

/* 后台评论预览样式 */
.comment-preview {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-preview-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #64748b;
}

.comment-preview-content {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
}

.comment-replies-preview {
    background: #f1f5f9;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-replies-preview h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #1e293b;
}

.reply-preview-item {
    padding: 10px 0;
    border-bottom: 1px dashed #cbd5e1;
}

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

.reply-author {
    font-weight: 500;
    color: #1e293b;
    font-size: 13px;
}

.reply-date {
    font-size: 12px;
    color: #94a3b8;
    margin-left: 8px;
}

.reply-preview-item p {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: #475569;
}
