/* 主题2：中国古风 - 水墨风格，传统色彩 */
@import url("./common.css");
@import url("./pagination.css");
@import url("./icon.css");

:root {
    --primary-color: #c41e3a;
    --secondary-color: #8b4513;
    --gold-color: #d4af37;
    --ink-black: #1a1a1a;
    --ink-gray: #2d2d2d;
    --paper-bg: #f5f0e6;
    --paper-light: #faf7f2;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border-color: #d4c4a8;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper-bg);
    font-family: 'Ma Shan Zheng', 'STKaiti', 'KaiTi', 'SimKai', serif;
    color: var(--text-primary);
    line-height: 1.8;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(196, 30, 58, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

* { box-sizing: border-box; }

.c_default { color: var(--text-primary); }
.c_white { color: #fff !important; }
.c_red { color: var(--primary-color); }
.c_pink { color: #d4af37; }
.c_black { color: var(--ink-black); }

.bg_red { 
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

/* 水墨纹理背景 */
.watermark-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* 顶部导航栏 - 古典风格 */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(26, 26, 26, 0.95) 100%);
    z-index: 1000;
    padding: 0 20px;
    border-bottom: 2px solid var(--gold-color);
}

.top-nav::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold-color) 50%, transparent 100%);
}

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

.top-nav-logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--gold-color);
    text-decoration: none;
    letter-spacing: 3px;
    font-family: 'Ma Shan Zheng', 'STKaiti', serif;
}

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

.top-nav-menu a {
    color: #d4c4a8;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    letter-spacing: 1px;
}

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

.top-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    transition: width 0.4s ease;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--gold-color);
    color: var(--gold-color);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.maomi-content {
    max-width: 85%;
    margin: 0 auto;
    padding: 10px 20px 40px;
    position: relative;
    z-index: 1;
}

.header-title{
	
	display:flex;
}

.header-container {
    text-align: center;
    padding: 0 20px;
    margin-bottom: 35px;
    position: relative;
}

.header-container::before,
.header-container::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.header-container::before {
    top: 0;
}

.header-container::after {
    bottom: 0;
}

.header_title {
    font-size: 48px;
    font-weight: 600;
    color: var(--ink-black);
    margin: 20px 0 15px 0;
    letter-spacing: 8px;
    font-family: 'Ma Shan Zheng', 'STKaiti', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

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

.search-box {
    background: var(--paper-light);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.homeToLink{
	display: inline-block;
    margin: 2px;
    padding: 5px 8px;
    background: var(--paper-bg);
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-family: 'STKaiti', serif;
}

.search-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
}

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

.search-input {
    flex: 1;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 0 20px;
    font-size: 16px;
    background: var(--paper-bg);
    font-family: 'STKaiti', serif;
    transition: all 0.3s ease;
	width:85%;
}

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

.search-button {
    height: 50px;
    width: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'STKaiti', serif;
    letter-spacing: 2px;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 30, 58, 0.35);
}

.row-item {
    background: var(--paper-light);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.row-item-title {
    padding: 12px 20px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 4px;
    letter-spacing: 2px;
}

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

.row-item-content li {
    background: var(--paper-bg);
    padding: 12px 16px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.row-item-content li:hover {
    background: rgba(196, 30, 58, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.toplinks, .navnav {
    background: var(--paper-light);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.toplinks div, .navnav div {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.toplinks a, .navnav a {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background: var(--paper-bg);
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-family: 'STKaiti', serif;
}

.toplinks a:hover, .navnav a:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b0000 100%);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.search-cloud1 {
    background: var(--paper-light);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 35px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.search-cloud1 .tag {
    display: inline-block;
    margin: 8px 8px;
    padding: 9px 18px;
    background: var(--paper-bg);
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-family: 'STKaiti', serif;
}

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

.main-container {
    background: var(--paper-light);
    border-radius: 8px;
    padding: 35px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
}

.main-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold-color), var(--primary-color));
}

.nav-row {
   
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cat_pos_l {
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-black);
    letter-spacing: 2px;
    font-family: 'STKaiti', serif;
}

.video-box {
    display: grid;
    
    gap: 25px;
    padding: 20px 0;
}

.content-item {
    background: var(--paper-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.content-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

.player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(196, 30, 58, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.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-family: 'STKaiti', serif;
}

.title {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

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

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

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

.footer-container {
    background: var(--ink-black);
    border-radius: 8px;
    padding: 40px 30px;
    margin-top: 40px;
    color: #999;
    border: 1px solid #333;
}

.footer-container::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    margin-bottom: 25px;
}

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

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

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.footer-links a {
    color: #666;
}

.footer-links a:hover {
    color: var(--gold-color);
}

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

.pagination a {
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-family: 'STKaiti', serif;
}

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

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

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

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

/* 装饰性元素 */
.decor-corner {
    position: relative;
}

.decor-corner::before,
.decor-corner::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--gold-color);
    border-style: solid;
}

.decor-corner::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.decor-corner::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.header-container {
	padding: 0;
	width:21%;
}
.homeToLink-row{
	width:79%;
}

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

@media (max-width: 768px) {
    .top-nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 2px solid var(--gold-color);
    }
	#formsearch{
		display:flex;
	}
	.search-input{
		height:35px;
	}
	.search-button{
		height:35px;
		margin-left:10px;
		width:16%;
	}
	.toplinks, .navnav{
		padding:10px;
	}
	
	

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

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

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

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

    .header_title {
        font-size: 32px;
        letter-spacing: 4px;
    }

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

    .search-button {
        width: 100%;
    }

    .video-box {
       
        gap: 15px;
    }

    .content-img {
        height: 110px;
    }

    .row-item-content {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
	.toplinks a, .navnav a{
		margin: 4px 4px;
        padding: 7px 8px;
        font-size: 13px;
	}
	.pagination em{
		display:none;
	}
	.pagination a{
		padding:5px;
		font-size:13px;
	}
	.pagination .pagenow{
		padding:5px 15px;
		font-size:13px;
	}
	.maomi-content{
		width:96%;
		max-width: 96%;
		padding: 10px 0px 30px;
	}
	 .main-container ,.video-box{
        padding: 0px;
    }
	.nav-row{
		margin-top:10px;
	}
	
	.header-container {
		padding: 0;
		width:20%;
	}
	.homeToLink-row{
		width:78%;
	}
	.header_desc{
		margin-top:25%;
		margin-left:2%;
	}
	.header_title{
		
	}
	
}

@media (max-width: 480px) {
    .header_title {
        font-size: 26px;
        letter-spacing: 3px;
    }
	.header-container {
		padding: 0 ;
		width:20%;
	}
	.homeToLink-row{
		width:78%;
		margin-left:2%;
	}
	.header_desc{
		margin-top:25%;
	}
	.header_title{
		
	}
	
	#formsearch{
		display:flex;
	}
	.search-input{
		height:35px;
		
	}
	.search-button{
		height:35px;
		margin-left:10px;
		width:16%;
	}
	
	.toplinks, .navnav{
		padding:10px;
	}
    .video-box {
        
        gap: 12px;
    }

    .content-img {
        height: 90px;
    }

    .main-container ,.video-box{
        padding: 0px;
    }
	.nav-row{
		margin-top:10px;
	}

    .search-box {
        padding: 10px;
    }
	.toplinks a, .navnav a{
		margin: 4px 4px;
        padding: 7px 8px;
        font-size: 13px;
	}
	.pagination em{
		display:none;
	}
	.pagination a{
		padding:5px;
		font-size:13px;
	}
	.pagination .pagenow{
		padding:5px 15px;
		font-size:13px;
	}
	.toplinks a, .navnav a{
		padding: 5px 10px;
	}
	.maomi-content{
		width:96%;
		max-width: 96%;
		padding: 10px 0px 30px;
	}
}