/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f8f8;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #ff5e00;
}

.main-nav {
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav li a {
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.main-nav li a:hover {
    background-color: #ff5e00;
    color: #fff;
}

/* 轮播图样式 */
.banner {
    padding: 20px 0;
    background: linear-gradient(135deg, #ff8f00, #ff5e00);
}

.banner-content {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider {
    position: relative;
    height: 400px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
}

.slide.active {
    opacity: 1;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    width: 100%;
    z-index: 1;
}

.slide-info h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.slider-controls {
    position: absolute;
    bottom: 80px;
    right: 20px;
    display: flex;
    z-index: 2;
}

.control {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.control.active {
    background-color: #fff;
}

/* 主要内容区域样式 */
main {
    padding: 30px 0;
}

section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff5e00;
}

.section-header h3 {
    font-size: 22px;
    color: #ff5e00;
}

.more {
    color: #ff5e00;
    font-weight: 500;
}

.more:hover {
    text-decoration: underline;
}

/* 卡片样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-img {
    position: relative;
    height: 180px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-tag, .upcoming-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.live-tag {
    background-color: #ff3b30;
    color: #fff;
}

.upcoming-tag {
    background-color: #34c759;
    color: #fff;
}

.card-info {
    padding: 15px;
}

.card-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info p {
    font-size: 14px;
    color: #666;
}

/* H1 标题样式 */
h1 {
    font-size: 28px;
    text-align: center;
    margin: 30px 0;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* APP下载模块样式 */
.app-download {
    background: linear-gradient(135deg, #ff5e00, #ff8f00);
    padding: 40px 0;
    color: #fff;
    border-radius: 10px;
    margin: 40px 0;
}

.app-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-info {
    flex: 1;
    padding-right: 40px;
}

.app-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
}

.feature {
    width: 50%;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature .icon {
    font-size: 24px;
    margin-right: 10px;
}

.download-buttons {
    display: flex;
    margin-top: 20px;
}

.btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    color: #ff5e00;
    border-radius: 5px;
    margin-right: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

.btn .icon {
    font-size: 20px;
    margin-right: 10px;
}

.app-qrcode {
    text-align: center;
}

.app-qrcode img {
    width: 150px;
    height: 150px;
    margin: 0 auto 10px;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
}

/* 文章模块样式 */
.article-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.article-img {
    flex: 0 0 300px;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
    padding: 20px;
}

.article-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #ff5e00;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo p {
    margin-top: 10px;
    color: #ccc;
}

.footer-links {
    display: flex;
}

.link-group {
    margin-right: 40px;
}

.link-group h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff5e00;
}

.link-group ul li {
    margin-bottom: 8px;
}

.link-group ul li a {
    color: #ccc;
}

.link-group ul li a:hover {
    color: #ff5e00;
}

.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff5e00;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
    display: flex;
    align-items: center;
}

.footer-contact .icon {
    margin-right: 10px;
}

.social-links {
    display: flex;
    margin-top: 15px;
}

.social-icon {
    display: block;
    width: 36px;
    height: 36px;
    background-color: #555;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #ff5e00;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav {
    display: flex;
    margin-bottom: 15px;
}

.footer-nav a {
    color: #ccc;
    margin: 0 15px;
}

.footer-nav a:hover {
    color: #ff5e00;
}

.copyright {
    text-align: center;
    color: #999;
    font-size: 14px;
}

.copyright a {
    color: #999;
}

.copyright a:hover {
    color: #ff5e00;
}

.friend-links {
    margin-top: 30px;
    border-top: 1px solid #444;
    padding-top: 20px;
}

.friend-links h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff5e00;
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
}

.friend-links ul li {
    margin-right: 15px;
    margin-bottom: 10px;
}

.friend-links ul li a {
    color: #ccc;
    font-size: 14px;
}

.friend-links ul li a:hover {
    color: #ff5e00;
}

/* 响应式样式 */
@media (max-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .footer-content {
        flex-wrap: wrap;
    }
    
    .footer-logo, .footer-links, .footer-contact {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-links {
        justify-content: space-between;
    }
    
    .link-group {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider {
        height: 300px;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-img {
        flex: 0 0 200px;
    }
    
    .main-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .slider {
        height: 200px;
    }
    
    .slide-info h2 {
        font-size: 18px;
    }
    
    .feature {
        width: 100%;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .btn {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
