/* ===========================
   全局基础样式
=========================== */
body {
    font-family: "微软雅黑", sans-serif;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    background: #fefefe;
    color: #333;
}

a {
    text-decoration: none;
    color: #CC0000;
    transition: color 0.2s;
}

a:hover {
    color: #FF3333;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

/* ===========================
   Header 样式
=========================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
	font-size:24px;
    font-weight: bold;
    color: #CC0000;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

/* 导航菜单 */
.main-nav {
    position: relative;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #CC0000;
}

.menu-list {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.menu-list li a {
    padding: 5px 0;
    color: #333;
}

.menu-list li a:hover {
    color: #CC0000;
}

/* Header 操作按钮 */
.header-actions a {
    background: #CC0000;
    color: #fff;
    padding: 6px 15px;
    border-radius: 4px;
    margin-left: 10px;
    transition: background 0.2s;
}

.header-actions a:hover {
    background: #FF3333;
}


/* ===========================
   主内容区域
=========================== */
.main-content {
    padding: 20px 0;
}

/* 轮播/精选模块 */
.highlight-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.highlight-card {
    flex: 1;
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    color: #CC0000;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.highlight-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 卡片样式 */
.card.modern-card {
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card-header {
    font-weight: bold;
    font-size: 1.2rem;
    background: #f8f8f8;
    padding: 10px;
    border-bottom: 1px solid #eee;
    border-radius: 6px 6px 0 0;
}

.card-body {
    padding: 15px;
}

/* 信息列表样式 */
.infolistbox, .newslistbox, .hot-newsbox {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.infolist-title, .newslist-title, .hot-news-title {
    font-weight: 500;
    color: #333;
}

.infolist-meta, .newslist-meta, .hot-news-meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
}

.badge-top {
    background: #CC0000;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
}

.news-thumb {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 侧边栏按钮 */
.side-bar {
    position: fixed;
    right: 10px;
    bottom: 100px;
    z-index: 1000;
}

.side-btn {
    width: 50px;
    height: 50px;
    background: #CC0000;
    color: #fff;
    text-align: center;
    line-height: 50px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 4px;
}

.side-btn:hover {
    background: #FF3333;
}

.main-panel {
    display: none;
    position: absolute;
    right: 60px;
    bottom: 0;
    color: #666;
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Footer */
.webfooter {
    background: #f9f9f9;
    color: #666;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    font-size: 0.9rem;
}

.webfooter a {
    color: #CC0000;
}

/* ===========================
   表单样式优化
=========================== */
.inputstyle {
    width: 100%;
    padding: 0.4rem;
    margin-bottom: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border 0.2s;
}

.inputstyle:focus {
    outline: none;
    border-color: #CC0000;
}

.bottonstyle {
    padding: 0.5rem 1.2rem;
    background: #CC0000;
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.bottonstyle:hover {
    background: #FF3333;
}

/* ===========================
   移动端适配
=========================== */
/* 移动端适配 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
        color: #CC0000;
    }
    
	.main-nav .menu-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* header 高度 */
        right: 0;
        width: 100%;
		min-width:160px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 999;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s, transform 0.3s;
    }

    .main-nav .menu-list.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav .menu-list li {
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
    }

    .header-actions {
        display: none;
        flex-direction: column;
        margin-top: 10px;
        background: #fff;
        border-top: 1px solid #eee;
    }

    .header-actions.show {
        display: flex;
    }

    .header-actions a {
        margin: 10px 20px;
        text-align: left;
    }
}
/* 搜索表单整体布局 */
.search-form {
    display: flex;
    gap: 10px;           /* 输入框和按钮间距 */
    align-items: center;  /* 垂直居中对齐 */
    flex-wrap: nowrap;    /* 永远不换行 */
	margin-top: 1rem;
}

/* 搜索输入框 */
.search-form .search_inputstyle {
    flex: 1;              /* 占满剩余空间 */
    min-width: 150px;     /* 防止太窄 */
    padding: 0.4rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.2s;
}

.search-form .search_inputstyle:focus {
    outline: none;
    border-color: #CC0000;
}

/* 搜索按钮 */
.search-form .search_bottonstyle {
    flex-shrink: 0;       /* 不缩小 */
    padding: 0.5rem 1rem;
    background: #CC0000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form .search_bottonstyle:hover {
    background: #FF3333;
}

/* 移动端优化：保证小屏下输入框不会太小 */
@media (max-width: 480px) {
    .search-form {
        gap: 5px;
    }
    .search-form .search_inputstyle {
        min-width: 100px;
    }
    .search-form .search_bottonstyle {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}
