/* 全局样式 */
:root {
  --primary-color: #FFD700;
  --secondary-color: #FF9500;
  --text-color: #333;
  --light-text: #fff;
  --dark-text: #222;
  --bg-color: #fff;
  --dark-bg: #222;
  --gray-bg: #f5f5f5;
  --border-color: #eaeaea;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--dark-text);
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* 图标样式 */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

.icon-search:before {
  content: "\e900";
}

.icon-check:before {
  content: "\e901";
}

.icon-android:before {
  content: "\e902";
}

.icon-apple:before {
  content: "\e903";
}

.icon-phone:before {
  content: "\e904";
}

.icon-email:before {
  content: "\e905";
}

.icon-location:before {
  content: "\e906";
}

.icon-weibo:before {
  content: "\e907";
}

.icon-wechat:before {
  content: "\e908";
}

.icon-douyin:before {
  content: "\e909";
}

.icon-bilibili:before {
  content: "\e90a";
}

/* 头部样式 */
header {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo a {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-size: 24px;
  font-weight: bold;
}

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

nav ul {
  display: flex;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: var(--light-text);
  font-weight: 500;
  position: relative;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover:after {
  width: 100%;
}

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

.search input {
  padding: 8px 15px;
  border: none;
  border-radius: 20px 0 0 20px;
  outline: none;
  width: 200px;
}

.search button {
  background-color: var(--primary-color);
  border: none;
  border-radius: 0 20px 20px 0;
  padding: 8px 15px;
  cursor: pointer;
  color: var(--dark-text);
}

/* 轮播图样式 */
.banner {
  padding: 20px 0;
  background-color: var(--gray-bg);
}

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

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

.slide.active {
  opacity: 1;
}

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

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--light-text);
}

.slide-content h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.slide-content p {
  margin-bottom: 20px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: var(--primary-color);
}

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

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  color: var(--dark-text);
}

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

.section-header h2 {
  font-size: 24px;
  color: var(--dark-text);
  position: relative;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.more {
  color: var(--secondary-color);
  font-weight: 500;
}

.more:hover {
  color: var(--primary-color);
}

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

.card {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

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

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

.card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: var(--dark-text);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.card-info {
  padding: 10px;
}

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

.card-info p {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 专题样式 */
.topic-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.topic {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 200px;
}

.topic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.topic-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--light-text);
}

.topic-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.topic-info p {
  font-size: 14px;
}

/* 排行榜样式 */
.ranking-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ranking-list {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  padding: 15px;
}

.ranking-list h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--dark-text);
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.ranking-list ul li {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.ranking-list ul li:last-child {
  border-bottom: none;
}

.rank-num {
  width: 24px;
  height: 24px;
  background-color: #eee;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  margin-right: 10px;
}

.ranking-list ul li:nth-child(1) .rank-num {
  background-color: gold;
  color: var(--dark-text);
}

.ranking-list ul li:nth-child(2) .rank-num {
  background-color: silver;
  color: var(--dark-text);
}

.ranking-list ul li:nth-child(3) .rank-num {
  background-color: #cd7f32;
  color: var(--light-text);
}

.rank-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.rank-info img {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
}

.rank-info h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.rank-info p {
  font-size: 12px;
  color: #666;
}

/* APP下载样式 */
.app-download {
  background-color: var(--gray-bg);
  padding: 40px 0;
  margin: 30px 0;
}

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

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

.app-info h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--dark-text);
}

.app-info p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #666;
}

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

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

.app-features li i {
  color: var(--primary-color);
  margin-right: 10px;
}

.download-btns {
  display: flex;
  gap: 15px;
}

.btn-android, .btn-ios {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.app-qrcode img {
  width: 150px;
  height: 150px;
  margin: 0 auto 10px;
  border: 5px solid var(--bg-color);
  border-radius: 10px;
}

.app-qrcode p {
  font-size: 14px;
  color: #666;
}

/* 文章样式 */
.article-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.article-item {
  display: flex;
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

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

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

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

.article-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--dark-text);
}

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

.read-more {
  color: var(--secondary-color);
  font-weight: 500;
  display: inline-block;
}

.read-more:hover {
  color: var(--primary-color);
}

/* 页脚样式 */
footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-logo svg {
  margin-right: 10px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-nav-group h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

.footer-nav-group ul li a {
  color: #aaa;
  font-size: 14px;
}

.footer-nav-group ul li a:hover {
  color: var(--primary-color);
}

.footer-contact h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

.footer-contact p i {
  margin-right: 10px;
  color: var(--primary-color);
}

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

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

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--dark-text);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.friend-links h3 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--primary-color);
  text-align: center;
}

.friend-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

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

.friend-links ul li a:hover {
  color: var(--primary-color);
}

/* 响应式样式 */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .app-content {
    flex-direction: column;
  }
  
  .app-info {
    padding-right: 0;
    margin-bottom: 30px;
  }
  
  .article-item {
    flex-direction: column;
  }
  
  .article-img {
    flex: 0 0 200px;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
  }
  
  nav ul li {
    margin: 5px 10px;
  }
  
  .search {
    width: 100%;
    max-width: 300px;
  }
  
  .slider {
    height: 300px;
  }
  
  .card-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .topic-container {
    grid-template-columns: 1fr;
  }
  
  .ranking-container {
    grid-template-columns: 1fr;
  }
  
  .download-btns {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .slider {
    height: 200px;
  }
  
  .slide-content {
    padding: 15px;
  }
  
  .slide-content h2 {
    font-size: 20px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .section-header h2 {
    font-size: 20px;
  }
  
  .footer-nav {
    grid-template-columns: 1fr;
  }
}
