/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

.container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    margin: 144px auto 0px;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    width: 110px;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    width: 100%;
    padding: 0.75rem;
    background-color: #e60012;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #d40010;
}

.error {
    color: #d9534f;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.captcha {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha img {
    height: 40px;
    width: 90px;
}

.success {
    color: #5cb85c;
    text-align: center;
    margin-top: 1rem;
}

.tips {
    color: #e60012;
    text-align: center;
    margin-top: 1rem;
}

.welcome-msg {
    color: #d9534f;
    text-align: center;
    margin-top: 1rem;
}

.button {
    width: 100%;
    display: inline-block;
    padding: 10px 20px;
    background-color: #e60012;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #d40010;
}

table {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
}

/* 导航栏样式 */
nav {
    background-color: #e60012;
    width: 100%;
    height: 64px;
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0 15px;
}

.nav-item a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: block;
    transition: color 0.3s;
    font-weight: bold;
	line-height: 1.5;
}

.nav-item.active a {
    font-weight: bold;
}

.nav-item a:hover {
    text-shadow: 0 0 2px white;
}

.mobile-menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background-color: #e60012;
        position: absolute;
        top: 64px;
        left: 0;
        z-index: 1001;
        padding: 10px 0;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        margin: 10px 0;
        text-align: center;
    }

    .nav-item a {
        font-size: 16px;
		line-height: 1.5;
    }

    .mobile-menu-icon {
        display: block;
    }
}

/* 视频样式 */
.video {
    position: relative;
    width: 100%;
    height: 590px;
    overflow: hidden;
	margin-top: 64px;
}

.video .v {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 100%;
    object-fit: cover;

}

.video .line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(./bg_line_border.png) repeat left top;
    pointer-events: none;
}

/* 轮播图样式 */
.slideshow-container {
    width: 100%;
    height: 400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -29px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(230, 0, 18, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(230, 0, 18, 0.8);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(230, 0, 18, 0.8);
}

/* 新闻消息样式 */
.news-container {
    max-width: 1000px;
    margin: 80px auto 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.news-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
	text-align: left; 
}

.news-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.news-content {
    font-size: 16px;
    line-height: 1.5;
	text-align: left; 
}

/* 页面内容居中 */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 页脚样式 */
.footer {
    height: 128px;
    background-color: #e60012;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin: 80px 0px 0px;
}

.copyright {
    font-size: 14px;
    margin-bottom: 10px;
}

.friend-links {
    display: flex;
    gap: 15px;
}

.friend-link {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.friend-link img {
    width: 64px;
    height: 32px;
}

.notice {
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .video {
        height: 500px;
    }
    
    .slideshow-container {
        height: 350px;
    }
    
    .slide img {
        height: 100%;
    }
}

@media (max-width: 768px) {
    .video {
        height: 400px;
    }
    
    .slideshow-container {
        height: 300px;
    }
    
    /*.nav-logo {
        width: 50px;
        height: 50px;
    }*/
    
    main {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .video {
        height: 300px;
    }
    
    .slideshow-container {
        height: 200px;
    }
    
    .news-container {
        padding: 10px;
    }
    
    .news-content {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .slideshow-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .slideshow-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .slideshow-container {
        height: 200px;
    }
}