/* 全局重置 & 基础自适应 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 14px;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f7f9fc;
    color: #333;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
ul, li {
    list-style: none;
}
img {
    max-width: 100%;
}
input, textarea, button {
    font-family: inherit;
    outline: none;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}






 /* 导航栏核心样式 */
        .nav-wrapper {
            background: #fff;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            position: sticky;
            top: 0;
            z-index: 999;
        }
        .main-nav {
            display: flex;
            align-items: center;
            height: 60px;
            position: relative;
        }
        .logo {
            display: flex;
            align-items: center;
            margin-right: 20px;
            color: #2563eb;
            font-weight: 700;
            font-size: 18px;
        }
        .logo i {
            font-size: 22px;
            margin-right: 8px;
        }

        /* 导航列表容器（关键：溢出隐藏） */
       /* 导航列表容器（关键：溢出隐藏） */
.nav-list-container {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
    position: relative;
}
.nav-list {
    display: flex;
    list-style: none;
    transition: all 0.3s ease;
}
/* 修复文字截断：关键修改 */
.nav-list li {
    white-space: nowrap; /* 强制文字不换行 */
    margin: 0 1px;
    /* 新增：保证每个导航项有足够宽度，且不压缩 */
    flex-shrink: 0; 
}
.nav-list li a {
    display: block;
    /* 修复：调整padding，保证文字有足够显示空间 */
    padding: 0 15px; 
    height: 60px;
    line-height: 60px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    /* 新增：强制文字不溢出、不截断 */
    overflow: visible; 
    text-overflow: clip; 
}
.nav-list li a:hover,
.nav-list li a.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

        /* 更多下拉菜单 */
        .more-menu {
            position: relative;
            margin-left: 8px;
        }
        .more-btn {
            display: flex;
            align-items: center;
            padding: 0 12px;
            height: 60px;
            line-height: 60px;
            color: #333;
            cursor: pointer;
            font-size: 14px;
        }
        .more-btn:hover {
            color: #2563eb;
        }
        .more-btn i {
            font-size: 10px;
            margin-left: 4px;
            transition: transform 0.2s;
        }
        .more-dropdown {
            position: absolute;
            top: 60px;
            right: 0;
            background: #fff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            border-radius: 4px;
            list-style: none;
            min-width: 120px;
            display: none;
            z-index: 9999;
        }
        .more-dropdown li {
            padding: 0;
        }
        .more-dropdown li a {
            display: block;
            padding: 8px 16px;
            height: auto;
            line-height: 1.5;
            border-bottom: none;
        }
        .more-dropdown li a:hover {
            background: #f0f7ff;
        }
        .more-menu:hover .more-dropdown {
            display: block;
        }
        .more-menu:hover .more-btn i {
            transform: rotate(180deg);
        }

        /* 搜索框 */
         .search-submit-group {
            display: flex;
            align-items: center;
            margin-left: 20px;
            gap: 8px; /* 搜索框和按钮之间的间距 */
        }
        /* 搜索框（微调：减少margin，因为放到group里了） */
        .search-box {
            position: relative;
        }
        .search-box input {
            width: 180px;
            height: 36px;
            padding: 0 12px 0 32px;
            border: 1px solid #e5e7eb;
            border-radius: 18px;
            font-size: 14px;
            outline: none;
            transition: all 0.2s;
        }
        .search-box input:focus {
            border-color: #2563eb;
            width: 220px;
        }
        .search-box i {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 14px;
        }
		
		
		       /* 提交网址按钮（新增核心样式） */
        .submit-site-btn {
            height: 36px;
            padding: 0 16px;
            background-color: #2563eb;
            color: #fff;
            border: none;
            border-radius: 18px;
            font-size: 14px;
            cursor: pointer;
            transition: background-color 0.2s;
            white-space: nowrap; /* 防止文字换行 */
        }
        .submit-site-btn:hover {
            background-color: #1d4ed8; /* hover加深颜色 */
        }
        .submit-site-btn i {
            margin-right: 4px; /* 图标和文字间距 */
            font-size: 12px;
        }
		
		
		

        /* 移动端菜单按钮（768px以下显示） */
        .mobile-menu-btn {
            display: none;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 4px;
            background: #fff;
            cursor: pointer;
            margin-left: 10px;
        }
        .mobile-menu-btn i {
            font-size: 18px;
            color: #333;
        }

        /* 移动端下拉菜单（默认隐藏） */
        .mobile-dropdown-menu {
            display: none;
            background: #fff;
            box-shadow: 0 4px 8px rgba(0,0,0,0.08);
            padding: 10px 0;
            position: absolute;
            top: 60px;
            left: 0;
            width: 100%;
            z-index: 999;
        }
        .mobile-dropdown-menu ul {
            list-style: none;
        }
        .mobile-dropdown-menu li a {
            display: block;
            padding: 12px 20px;
            color: #333;
            text-decoration: none;
            font-size: 14px;
            border-bottom: 1px solid #f5f5f5;
        }
        .mobile-dropdown-menu li a:hover {
            background: #f0f7ff;
            color: #2563eb;
        }

        /* 响应式适配 */
        @media (max-width: 768px) {
            .nav-list-container, .more-menu {
                display: none;
            }
            .mobile-menu-btn {
                display: flex;
            }
            .search-box {
                margin-left: auto;
            }
			 .search-box input {
                width: 140px;
            }
            .search-box input:focus {
                width: 160px;
            }
			  .submit-site-btn span {
                display: none;
            }
            .submit-site-btn {
                padding: 0; width:30px; height:30px; text-align:center
            }
			
			.submit-site-btn i {
    margin-right: 0px;
    font-size: 20px;
}
			
        }








/* 首页横幅区块 */
.banner {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.banner h1 {
    font-size: 36px;
    margin-bottom: 12px;
}
.banner p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}
.banner-search {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}
.banner-search input {
    flex: 1;
    height: 46px;
    border-radius: 8px;
    border: none;
    padding: 0 16px;
    font-size: 16px;
}
.banner-search button {
    height: 46px;
    padding: 0 24px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}
@media (max-width:768px) {
    .banner {
        padding: 40px 0;
    }
    .banner h1 {
        font-size: 26px;
    }
}

/* 通用区块标题 */
.section-title {
    font-size: 22px;
    margin:10px 0;
    padding-left: 12px;
    border-left: 4px solid #2563eb;
}

/* AI工具卡片网格 */
.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.site-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.site-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.site-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.site-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #2563eb;
    font-size: 18px;
}
.site-name {
    font-size: 16px;
    font-weight: 600;
}
.site-desc {
    font-size: 13px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分类栏目页侧边栏 */
.category-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    margin: 10px 0;
}
.category-sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    height: fit-content;
}
.category-sidebar h3 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.category-sidebar li {
    margin-bottom: 10px;
}
.category-sidebar li a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.2s;
}
.category-sidebar li a.active,
.category-sidebar li a:hover {
    background: #eff6ff;
    color: #2563eb;
}
@media (max-width:768px) {
    .category-wrap {
        grid-template-columns: 1fr;
    }
}

/* 详情页样式 */
.detail-box {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    margin: 10px 0;
}
.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.detail-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #2563eb;
}
.detail-info h2 {
    font-size: 26px;
    margin-bottom: 6px;
}
.detail-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 20px;
    font-size: 13px;
    margin-right: 8px;
}
.detail-desc {
    margin: 20px 0;
    color: #444;
    line-height: 1.8;
}




/* 功能操作区（点赞/顶踩） */
.site-detail-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* 顶/踩按钮 */
.vote-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
}

/* 点赞（顶）按钮 */
.up-vote {
  background: #eef4ff;
  color: #0066FF;
  border: 1px solid #deefff;
}

.up-vote:hover {
  background: #0066FF;
  color: #fff;
}

.up-vote.active {
  background: #0066FF;
  color: #fff;
}

/* 踩按钮 */
.down-vote {
  background: #f9f9f9;
  color: #666;
  border: 1px solid #eee;
}

.down-vote:hover {
  background: #f0f0f0;
  color: #333;
}

.down-vote.active {
  background: #666;
  color: #fff;
}

/* 访问按钮 */
.visit-btn {
  margin-left: auto;
  padding: 10px 24px;
  background: #0066FF;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s ease;
}

.visit-btn:hover {
  background: #0052cc;
}


/* 新闻详情内容 */
.news-content-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}
.news-content-box h1 {
    font-size: 26px;
    margin-bottom: 12px;
}
.news-content-meta {
    color: #888;
    font-size: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.news-content-body {
    line-height: 1.9;
    font-size: 16px;
    color: #333;
}
.news-content-body p {
    margin-bottom: 16px;
}

/* 提交站点表单页 */
.form-box {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    max-width: 700px;
    margin: 10px auto;
}
.form-item {
    margin-bottom: 20px;
}
.form-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-item input,
.form-item select,
.form-item textarea {
    width: 100%;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 15px;
}
.form-item textarea {
    height: 120px;
    padding-top: 10px;
    resize: none;
}



.row-input{display:flex;gap:12px;margin-bottom:16px;align-items:center;}
.row-input input{flex:1;padding:10px 14px;border:1px solid #e2e8f0;border-radius:6px;font-size:15px;outline:none;transition:.2s;}
.get-tdk{padding:10px 16px;background:#0066ff;color:#fff;border:none;border-radius:6px;cursor:pointer;white-space:nowrap;}


.code-wrap{display:flex;gap:10px;margin-top:12px;align-items:center;}
.code-wrap input{flex:1;padding:10px 12px;border:1px solid #e2e8f0;border-radius:6px;}
.code-img{padding:8px 10px;background:#eef2ff;border-radius:6px;letter-spacing:3px;font-weight:bold;cursor:pointer;user-select:none;}
.code-img img{ width:100px;}


.upload-logo{height:100px;border:1px dashed #d0d7e3;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:40px;color:#94a3b8;margin-bottom:16px;cursor:pointer;position:relative;overflow:hidden;}
#defaultPlus{ font-size:40px;}
#faviconImg{width:80px;height:80px;object-fit:cover;display:none;}
.upload-logo input{position:absolute;width:100%;height:100%;opacity:0;cursor:pointer;}


.submit-btn {
    width: 100%;
    height: 48px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

/* 底部公共样式 */
.footer {
    background: #1f2937;
    color: #aaa;
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer-inner {
    text-align: center;
}
.footer-logo {
    font-size: 22px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 12px;
}
.footer-copy {
    margin-top: 20px;
    font-size: 14px;
}






/* ========== 跳转提示弹窗样式 ========== */
/* 弹窗遮罩层 */
.jump-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* 弹窗显示状态 */
.jump-mask.show {
  opacity: 1;
  visibility: visible;
}

/* 弹窗容器 */
.jump-modal {
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.jump-mask.show .jump-modal {
  transform: translateY(0);
}

/* 弹窗标题 */
.jump-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.jump-title i {
  color: #0066FF;
}

/* 弹窗内容 */
.jump-content {
  font-size: 15px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* 弹窗按钮组 */
.jump-btns {
  display: flex;
  gap: 10px;
}

/* 弹窗按钮通用样式 */
.jump-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  border: none;
}

/* 取消按钮 */
.jump-cancel {
  background: #f5f5f5;
  color: #666;
}

.jump-cancel:hover {
  background: #eee;
}

/* 确认按钮 */
.jump-confirm {
  background: #0066FF;
  color: #fff;
}

.jump-confirm:hover {
  background: #0052cc;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .jump-modal {
    padding: 20px;
  }
  
  .jump-title {
    font-size: 16px;
  }
  
  .jump-content {
    font-size: 14px;
  }
}



/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
}

.pagination  a {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination  a:hover {
  background: #0066FF;
  color: #fff;
  border-color: #0066FF;
}

.pagination  a.active {
  background: #0066FF;
  color: #fff;
  border-color: #0066FF;
}


/* 网站大图展示 */
.site-detail-banner {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 25px 0; display:block
}






/* 两栏网格核心：桌面一排2个，手机自动1栏 */
.news-two-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.news-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.13);
}
/* 新闻图片容器 */
.news-img-box {
    display: block;
    width: 100%;
    height: 240px;
    overflow: hidden;
}
.news-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-card:hover .news-img-box img {
    transform: scale(1.06);
}
/* 文字内容区域 */
.news-text-wrap {
    padding: 20px 22px 24px;
}
.news-title {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-title a {
    color: #222;
}
.news-title a:hover {
    color: #2563eb;
}
.news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 新闻元信息：时间/分类/阅读量 */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #888;
}
.news-meta span i {
    margin-right: 4px;
}

 

/* 自适应：平板/手机改为1栏 */
@media (max-width: 768px) {
	.category-sidebar{ display:none}
	
	
    .news-two-grid {
        grid-template-columns: 1fr 1fr;
    }
    .news-img-box {
        height: 120px;
    }
.news-desc { display:none}
    .news-text-wrap {
        padding: 16px;
    }
    .news-title {
        font-size: 16px;
    }
  .site-detail-actions {
    flex-wrap: wrap;
      grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .visit-btn {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

}


/* 面包屑 当前位置 */
.breadcrumb {
    background: #f7f8fa;
    padding: 14px 0;
    font-size: 14px;
}
.breadcrumb a {
    color: #666;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #2563eb;
}
.breadcrumb a.active {
    color: #2563eb;
}
