/* 主题1：欧美简约风 - 干净简洁的现代设计 */
@import url("./common.css");
@import url("./pagination.css");
@import url("./icon.css");

body{
	background:#d1d1d1;
}

/* 分类标题区域 */
.category-header {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.category-left {
    width: 100px;
    height: 100px;
    border: 1px solid #515151;
	background:#515151;
	color:#fff;
	border-radius:5px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.category-left div {
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-right {
    flex: 1;
    border-left:1px solid #fff;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    border-radius:5px;
	background:#515151;
	color:#fff;
    padding: 10px;
    min-height: 100px;
}

.category-right .category-link {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .category-header {
        flex-direction: row;
        align-items: stretch;
    }
    
    .category-left {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .category-left div {
        flex: 1;
    }
    
    .category-right {
        flex: 1;
        
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-gap: 3px;
        min-height: 80px;
        align-items: center;
        max-height: 80px;
        overflow: hidden;
    }
    
    .category-right .category-link {
        padding: 3px 0;
        border-bottom: none;
        font-size: 12px;
    }
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --background-color: #f8fafc;
    --card-bg: #d1d1d1;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--background-color);
    font-family: 'Inter', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

.c_default { color: var(--text-primary); }
.c_white { color: #fff !important; }
.c_red { color: #dc2626; }
.c_pink { color: var(--primary-color); }
.c_black { color: #0f172a; }

.bg_red { 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* 顶部导航栏 */
.top-nav {
    width: 85%;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    background: #d1d1d1;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0 20px;
    box-shadow: var(--shadow-sm);
}

.top-nav-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

.top-nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.top-nav-menu {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
    position: relative;
}

.top-nav-menu a:hover {
    color: var(--primary-color);
}

.top-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.top-nav-menu a:hover::after {
    width: 100%;
}

.top-nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.top-nav-menu a.active::after {
    width: 100%;
}

.top-nav-search-btn {
    display: none;
    margin-left: 15px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #d1d7e5 0%, #dcdcdc 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 20px;
    transition: all 0.3s ease;
}

.top-nav-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.maomi-content {
    max-width: 85%;
    margin: 0 auto;
    padding: 15px 20px 40px;
	background:#d1d1d1;
}

.header-container {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
}

.header_title {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
}

.header-desc {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}



.search-input-wrapper {
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    height: 52px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--background-color);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-button {
    height: 52px;
    width: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.row-item {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.row-item-title {
    padding: 12px 20px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
}

.row-item-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.row-item-content li {
    background: var(--background-color);
    padding: 10px 16px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.row-item-content li:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.row-item-content a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
}

.toplinks, .navnav {
    background: #d1d1d1;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.toplinks div, .navnav div {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.toplinks a, .navnav a {
    display: inline-block;
    margin: 1px;
    padding: 10px;
    background: #9454d9;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    width: calc(10% - 3px);
    text-align: center;
    box-sizing: border-box;
}

.toplinks a:hover, .navnav a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.search-cloud1 {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 5px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(10, 1fr); /* 3列，每列等宽 */
  gap: 5px; /* 间距 */
  text-align:center;
}

.search-cloud1 .tag {
    display: inline-block;
    margin-bottom:0;
    background: #829ebb;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.search-cloud1 .tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.main-container {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.nav-row {
	
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.cat_pos_l {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.video-box {
   
	width:100%;
    
   
    padding: 5px 0;
}

.content-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    min-width: 0;
}

/* PC端样式 */
@media (min-width: 769px) {
    .top-nav-search-btn {
        display: block;
    }
}

/* 移动端样式 */
@media (max-width: 768px) {
	.top-nav {
		width:100%;
	}
    .video-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
	
	.pagination em{
		display:none;
	}
	
	.pagination a{
		padding:5px 8px;
	}
	
	.top-nav-search-btn{
		display:block;
		margin-left: 15px;
		padding: 5px 10px;
		background: none;
		color: #fff;
		text-decoration: none;
		border-radius: 8px;
		font-weight: 600;
		font-size: 20px;
		transition: all 0.3s ease;
	}
	.toplinks a{
		background:var(--primary-color);
		color:#fff;
	}
	
	.item-meta{
		margin-top:10px;
		font-size:13px;
	}
    
    .toplinks a, .navnav a {
        width: calc(16.66% - 12px);
        padding: 5px 6px;
        font-size: 12px;
        margin: 2px;
		width:23%;
    }
}

.content-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-pic {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
}

.content-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.content-item:hover .content-img {
    transform: scale(1.08);
}

.player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.video-pic:hover .player {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.note {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}

.title {
    padding: 10px 5px;
}

.text-overflow-2 {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-overflow-2 a {
    color: var(--text-primary);
    text-decoration: none;
}

.text-overflow-2 a:hover {
    color: var(--primary-color);
}

.footer-container {
    background: #d1d1d1;
    border-radius: 0;
    padding: 40px 30px;
    margin-top: 0;
	border-top:1px solid #fff;
    color: #94a3b8;
	
}

.footer-container .row {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.8;
}

.footer-container a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-container a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #fff;
}

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

.pagination a {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.pagination a:hover:not(.disabled) {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .pagenow {
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination em {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .video-box {
		width:100%;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .top-nav-menu {
        display: none;
        position: absolute;
        top: 65px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-color);
    }
	
	.pagination a{
		padding:0 8px;
	}
	.pagination .pagenow{
		padding:0 18px;
	}
	.maomi-content{
		width:100%;
		max-width:100%;
	}
	.top-nav-content{
		width:100%;
		max-width:100%;
		justify-content: space-between;
	}
	.top-nav-search-btn{
		order: 1;
		
		margin-left: auto;
		margin-right: 0;
	}
	.top-nav-logo{
		order: 2;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
	}
	.mobile-menu-btn{
		order: 3;
	}
	.toplinks, .navnav{
		padding:5px;
	}
	.top-nav-menu a{
		display:block;
		width:100%;
	}
	
	.toplinks a, .navnav a{
		padding:10px;
		border-radius:10px;
		margin:5px 3px;
	}
	
	
	.search-cloud1{
		padding:5px;
	}

    .top-nav-menu.active {
        display: flex;
    }

    .top-nav-menu li {
        margin: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .maomi-content {
        padding: 10px 5px 30px;
    }

    .header_title {
        font-size: 28px;
    }

    .search-input-wrapper {
        flex-direction: column;
    }

    .search-button {
        width: 100%;
    }

    .video-box {
        
        gap: 15px;
    }

    .content-img {
        height: 120px;
    }

    .row-item-content {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
	.c_pink{
		font-size:14px;
	}
	.cat_pos_l{
		font-size:14px;
	}
}

@media (max-width: 480px) {
    .header_title {
        font-size: 24px;
    }
	.top-nav-menu a{
		display:block;
		width:100%;
	}
	
	.maomi-content{
		width:100%;
		max-width:100%;
	}
	
	.top-nav-content{
		width:100%;
		max-width:100%;
	}
	
	.toplinks, .navnav{
		padding:5px;
	}
	.toplinks a, .navnav a{
		padding:5px;
		border-radius:5px;
		margin:2px 3px;
	}
	
	
	.grid-container{
		 display: grid;
		  grid-template-columns: repeat(7, 1fr); /* 3列，每列等宽 */
		  gap: 2px; /* 间距 */
		  text-align:center;
	}
	
	.search-cloud1 .tag{
		padding:5px;
		border-radius:5px;
		white-space: nowrap;    /* 强制文字不换行 */
          overflow: hidden;       /* 超出部分隐藏 */
          text-overflow: ellipsis; /* 超出部分显示省略号 */
		font-size:10px;
	}
	.search-cloud1{
		padding:5px;
	}

    .video-box {
		width:100%;
        gap: 12px;
    }

    .content-img {
        height: 100px;
    }

    .main-container {
        padding: 5px;
    }

    .search-box {
        padding: 5px;
    }
	.c_pink{
		font-size:14px;
	}
	.cat_pos_l{
		font-size:14px;
	}
}