/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

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

a:hover {
    color: #e74c3c;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

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

.section {
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    font-size: 20px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.section-header h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #e74c3c;
    border-radius: 2px;
}

.more {
    font-size: 14px;
    color: #999;
}

.more:hover {
    color: #e74c3c;
}

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

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

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 10px;
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-box form {
    display: flex;
    position: relative;
}

.search-box input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: 2px solid #e74c3c;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    outline: none;
}

.search-box button {
    width: 80px;
    height: 40px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background-color: #c0392b;
}

.user-nav {
    display: flex;
    align-items: center;
}

.login-btn, .register-btn {
    padding: 8px 15px;
    border-radius: 4px;
    margin-left: 10px;
    font-size: 14px;
}

.login-btn {
    background-color: #f5f5f5;
    color: #666;
}

.register-btn {
    background-color: #e74c3c;
    color: #fff;
}

.login-btn:hover {
    background-color: #eee;
}

.register-btn:hover {
    background-color: #c0392b;
}

/* 导航栏样式 */
.main-nav {
    background-color: #2c3e50;
}

.main-nav ul {
    display: flex;
    height: 50px;
}

.main-nav li {
    position: relative;
}

.main-nav li a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 20px;
    color: #fff;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.main-nav li:hover a, .main-nav li.active a {
    background-color: #e74c3c;
}

/* 轮播图样式 */
.banner {
    margin-top: 20px;
    margin-bottom: 30px;
}

.slider {
    position: relative;
    height: 400px;
    border-radius: 5px;
    overflow: hidden;
}

.slider-items {
    height: 100%;
    position: relative;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-item.active {
    opacity: 1;
    z-index: 1;
}

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

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: #fff;
    z-index: 2;
}

.slider-caption h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
}

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

.dot.active {
    background-color: #e74c3c;
}

.slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* 卡片样式 */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
    position: relative;
    height: 0;
    padding-bottom: 140%;
    overflow: hidden;
}

.card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img img {
    transform: scale(1.05);
}

.score {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(231, 76, 60, 0.9);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.card-info {
    padding: 10px;
    background-color: #fff;
}

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

.card-info p {
    color: #999;
    font-size: 12px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tags {
    display: flex;
    flex-wrap: wrap;
}

.tags span {
    font-size: 12px;
    color: #666;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* APP下载区域 */
.app-download {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: #fff;
    padding: 0;
}

.app-content {
    display: flex;
    align-items: center;
    padding: 40px 20px;
}

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

.app-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.app-info p {
    font-size: 16px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.app-features {
    margin-bottom: 25px;
}

.app-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.app-features i {
    margin-right: 10px;
    color: #2ecc71;
}

.download-btns {
    display: flex;
    margin-bottom: 20px;
}

.android-btn, .ios-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 5px;
    margin-right: 15px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: background-color 0.3s ease;
}

.android-btn:hover, .ios-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.android-btn i, .ios-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-img {
    width: 120px;
    height: 120px;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.app-image {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.app-image img {
    max-height: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 新闻资讯区域 */
.news-container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.news-main {
    flex: 1;
    min-width: 300px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.news-list {
    flex: 1;
    min-width: 300px;
}

.news-item {
    display: flex;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-item.featured {
    flex-direction: column;
}

.news-img {
    width: 120px;
    height: 90px;
    overflow: hidden;
}

.news-item.featured .news-img {
    width: 100%;
    height: 250px;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
    padding: 15px;
}

.news-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-item.featured .news-content h3 {
    font-size: 20px;
}

.news-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    color: #e74c3c;
    font-size: 14px;
}

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

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding-top: 50px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-top {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-logo p {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
}

.footer-nav-col {
    flex: 1;
    min-width: 150px;
    margin-bottom: 20px;
}

.footer-nav-col h3 {
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav-col h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #e74c3c;
}

.footer-nav-col ul li {
    margin-bottom: 10px;
}

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

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: #e74c3c;
}

.app-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #e74c3c;
    color: #fff;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.app-btn:hover {
    background-color: #c0392b;
    color: #fff;
}

.footer-middle {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-middle h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

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

.friend-links li, .friend-links a {
    margin-right: 15px;
    margin-bottom: 10px;
    white-space: nowrap;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.copyright {
    margin-bottom: 15px;
}

.copyright p, .disclaimer p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
    font-size: 12px;
}

/* 图标样式 */
.icon-search:before {
    content: "🔍";
    margin-right: 5px;
}

.icon-check:before {
    content: "✓";
}

.icon-android:before {
    content: "📱";
}

.icon-apple:before {
    content: "🍎";
}

.icon-weibo:before {
    content: "微";
}

.icon-wechat:before {
    content: "信";
}

.icon-douyin:before {
    content: "抖";
}

.icon-bilibili:before {
    content: "B";
}

/* 响应式样式 */
@media (max-width: 992px) {
    .card-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .search-box {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 15px 0 0;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        height: auto;
    }
    
    .main-nav li a {
        padding: 10px 15px;
    }
    
    .slider {
        height: 300px;
    }
    
    .news-container {
        flex-direction: column;
    }
    
    .news-main {
        margin-right: 0;
    }
    
    .news-img {
        width: 100px;
        height: 75px;
    }
    
    .footer-nav {
        flex-direction: column;
    }
    
    .footer-nav-col {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .card-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider {
        height: 200px;
    }
    
    .slider-caption h3 {
        font-size: 18px;
    }
    
    .slider-caption p {
        display: none;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-img {
        width: 100%;
        height: 120px;
    }
}

/* 透明轮播背景 */
.section {
    position: relative;
}

.section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("http://a28.he-yan.com/template/news/6laoniu/static/picture/q10.jpg") no-repeat center;
    background-size: cover;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.section-header, .card-list, .app-content, .news-container {
    position: relative;
    z-index: 1;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .news-item {
    animation: fadeIn 0.5s ease forwards;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a8a8a8;
}
