:root { --primary-color: #E60012; --primary-text: #E33314; --bg-color: #F5F5F7; --text-main: #333; --text-muted: #999; --font-family: "PingFang SC", "Microsoft YaHei", sans-serif; --border-radius-lg: 25px; --border-radius-md: 10px; --border-radius-sm: 5px; }
body { font-family: var(--font-family); margin: 0; padding: 0; color: var(--text-main); background: #fff; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
a:hover { color: var(--primary-color); }
.container { width: 1200px; margin: 0 auto; padding: 0; box-sizing: border-box; }
.box { background-color: var(--bg-color); border-radius: var(--border-radius-md); padding: 15px; box-sizing: border-box; }
/* Header */
.header-top { height: 100px; display: flex; align-items: center; justify-content: space-between; }
.logo { height: 66px; }
.header-badges { display: flex; gap: 20px; align-items: center; }
.header-badges img { height: 26px; }
.header-badges .vertical-line { height: 36px; width: 1px; background-color: #D7D7D7; }
.header-nav { border-top: 5px solid var(--primary-color); background: var(--bg-color); height: 75px; display: flex; align-items: center; border-bottom: 1px solid #D7D7D7; }
.nav-menu { display: flex; justify-content: space-between; width: 100%; list-style: none; padding: 0; margin: 0; font-size: 20px; font-weight: 200; }
.nav-menu a { color: #555; position: relative; display: flex; align-items: center; height: 75px; }
.nav-menu a.active { color: var(--primary-color); font-weight: 650; position: relative; }
.nav-menu a.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 5px; background-color: var(--primary-color); border-radius: 2px; }
.top-news-image { width: 1200px; position: relative; border-radius: var(--border-radius-md); overflow: hidden; margin-left: 0px; /* margin-top: 25px; margin-bottom: 25px; */ }
.top-news-image img { width: 100%; height: 100%; object-fit: cover; margin-top: 20px;border-radius: var(--border-radius-sm); }
.top-news-swiper .swiper-pagination { display: flex; gap: 10px; bottom: 35px; margin: 0; padding: 0 20px; box-sizing: border-box; }
.top-news-swiper .swiper-pagination-bullet { width: 100%; height: 5px; background: rgba(245, 245, 247, 0.5); border-radius: 5px; cursor: pointer; transition: background 0.3s; opacity: 1; margin: 0 !important; }
.top-news-swiper .swiper-pagination-bullet-active { background: rgba(245, 245, 247, 1); }
/* Main Content */
main { padding-top: 25px; }
/* News Layout */
.news-layout { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px;}
/* Left Column (News List) */
.news-main-list { flex: 1; width: 750px; /* Fixed width based on prototype */ display: flex; flex-direction: column; gap: 20px; }
.top-news-featured { position: relative; border-radius: var(--border-radius-lg); overflow: hidden; padding: 15px; display: flex; gap: 25px; align-items: stretch; background-color: var(--bg-color); margin-bottom: 20px; margin-top: 15px; }
.top-news-featured .featured-image-wrapper { width: 720px; height: 443px; flex-shrink: 0; position: relative; border-radius: var(--border-radius-md); overflow: hidden; }
.top-news-featured .featured-image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-news-featured .featured-content-wrapper { flex: 1; /* Takes remaining width: 1200 - 30 (padding) - 720 - 25 = 425px */ background-color: transparent; padding: 0; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start; margin-top: 10px; position: relative; min-height: 180px; }
.top-news-featured .featured-content-wrapper a { padding: 10px; }
.top-news-featured .featured-content-wrapper h3 { font-size: 38px; font-weight: 500; color: var(--text-main); margin: 0; line-height: 1.4; }
.top-news-featured .featured-content-wrapper h3:hover { color: var(--primary-color); }
.top-news-featured .featured-content-wrapper .date { font-size: 16px; color: var(--text-muted); margin-top: auto; font-weight: 200; position: absolute; bottom: 0; left: 0; padding: 10px; }
.news-main-list .news-item { display: flex; gap: 20px; align-items: stretch; padding: 15px; background-color: var(--bg-color); border-radius: var(--border-radius-md); transition: box-shadow 0.3s; }
.news-main-list .news-item:hover { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
.news-main-list .news-item .news-image-wrapper { width: 260px; height: 147px; border-radius: var(--border-radius-md); overflow: hidden; flex-shrink: 0; }
.news-main-list .news-item .news-image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-main-list .news-content { display: flex; flex-direction: column; justify-content: flex-start; padding-top: 5px; padding-bottom: 5px; flex: 1; }
.news-main-list .news-content h3 { font-size: 24px; font-weight: 400; color: var(--text-main); margin: 0 0 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.3s; }
.news-main-list .news-content h3:hover { color: var(--primary-color); }
.news-main-list .news-content .date { font-size: 16px; color: var(--text-muted); margin-top: auto; font-weight: 200; }
.news-main-list .news-item-text-only { display: flex; flex-direction: column; justify-content: center; padding: 10px 0; border-bottom: 1px solid #EAEAEA; padding-bottom: 25px; }
.news-main-list .news-item-text-only:last-child { border-bottom: none; }
.news-main-list .news-item-text-only h3 { font-size: 26px; font-weight: 400; color: var(--text-main); margin: 0 0 15px; line-height: 1.4; transition: color 0.3s; }
.news-main-list .news-item-text-only h3:hover { color: var(--primary-color); }
.news-main-list .news-item-text-only .date { font-size: 16px; color: var(--text-muted); font-weight: 200; }
.load-more-btn { display: flex; justify-content: center; align-items: center; width: 100%; height: 50px; background-color: var(--bg-color); color: #E33314; font-size: 16px; border-radius: var(--border-radius-lg); margin-top: 20px; cursor: pointer; transition: background-color 0.3s; }
.load-more-btn:hover { background-color: #e5e5e5; }
/* Right Column (Sidebar) */
.sidebar { width: 420px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.sidebar-section { background-color: var(--bg-color); border-radius: var(--border-radius-md); padding: 15px; }
.sidebar-section-ad { border-radius: var(--border-radius-md);}
.sidebar-title { font-size: 20px; font-weight: 650; color: var(--primary-text); margin: 0 0 20px; display: flex; align-items: center; position: relative; padding-left: 15px; z-index: 1; }
.sidebar-title::before { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 14px; background-image: url('../images/u38.png'); background-size: contain; background-repeat: no-repeat; z-index: -1; }
.hot-news-list { list-style: none; padding: 0; margin: 0; }
.hot-news-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.hot-news-item:last-child { margin-bottom: 0; }
.hot-news-item .rank { width: 22px; height: 22px; background-color: #ccc; color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 14px; flex-shrink: 0; margin-top: 3px; }
.hot-news-item.top-3 .rank { background-color: var(--primary-color); }
.hot-news-item .title { font-size: 18px; color: var(--text-main); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-news-item:hover .title { color: var(--primary-color); }
/* App Downloads */
.app-download-item { display: flex; align-items: flex-start; background-color: #fff; padding: 15px; /* 将center改为flex-start，使子元素从顶部开始对齐 */ gap: 15px; margin-bottom: 15px; height: 100px; border-radius: var(--border-radius-md); /* 添加固定高度，与图片高度一致 */ }
.app-download-item:last-child { margin-bottom: 0; }
.app-download-item img { width: 100px; height: 100px; border-radius: 0px; flex-shrink: 0; }
.app-download-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; /* 关键：使第一个子元素在顶部，最后一个在底部 */ height: 100%; /* 确保与父容器高度一致 */ }
.app-download-info h4 { font-size: 16px; font-weight: 650; margin: 0 0 5px; color: var(--text-main); }
.app-download-info p { font-size: 14px; color: var(--text-muted); margin: 0; }
/* Footer */
footer { margin-top: 60px; background: #F5F5F7; padding: 30px 0 50px; border-top: 5px solid var(--primary-color); }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.footer-text { font-size: 14px; color: var(--text-muted); line-height: 2; font-weight: 200; }
.footer-text p { margin: 5px 0; }
.footer-text a { color: #F2001D; }
.footer-badges { display: flex; align-items: center; }
.footer-badges .footer-logo { height: 66px; margin-left: 60px; }
.footer-badges .footer-saomiao { display: flex; flex-direction: column; background: #fff; padding: 5px; justify-content: center; }
.footer-badges .footer-saomiao .footer-erweima { height: 88px; margin-bottom: 5px; }
.footer-badges .footer-saomiao span { font-size: 12px; color: var(--text-muted); }
.ellipsis1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ellipsis2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ellipsis3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ellipsis4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ellipsis5 { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
