* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  max-width: 1200px;
  width: 100%;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header {
  background: linear-gradient(135deg, #5A6CCB 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  text-align: center;
}

.header h1 {
  font-size: 2.5rem;
  margin-top: 10px;
  margin-bottom: 10px;
}

.header p {
  padding: 12px;
  margin: 20px auto;
  border-radius: 8px;
  max-width: 99%;
  font-size: 0.75rem;
  backdrop-filter: blur(5px);
}

/* 新增导航菜单样式 */
.nav-menu {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 20px auto;
  max-width: 90%;
  backdrop-filter: blur(5px);
}

.nav-menu ul {
  display: flex;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.nav-menu a {
  display: block;
  padding: 12px 15px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-menu a.active {
  background: rgba(255, 255, 255, 0.3);
}

.nav-menu a.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: white;
}

.search-container {
  margin: 20px auto;
  max-width: 600px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  outline: none;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  background: linear-gradient(135deg, #5A6CCB 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 7px 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.search-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.ip-info {
  background: rgba(255, 255, 255, 0.2);
  padding: 12px;
  /* margin: 20px auto; */
  border-radius: 8px;
  max-width: 99%;
  font-size: 0.7rem;
  backdrop-filter: blur(5px);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 30px;
  gap: 20px;
}

.platform-card {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  cursor: pointer;
}

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

.card-icon {
  padding: 30px 0;
  font-size: 3.5rem;
  color: white;
}

.mobile .card-icon {
  background: linear-gradient(135deg, #C96C48 0%, #E3906F 100%);
}

.pc .card-icon {
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
}

.admin .card-icon {
  background: linear-gradient(135deg, #a18cd1 0%, #AF9BD3 100%);
}

.card-content {
  padding: 20px;
}

.card-content h2 {
  margin-bottom: 12px;
  color: #333;
  font-size: 1.5rem;
}

.card-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.mobile .btn {
  background: #C96C48;
  color: white;
}

.pc .btn {
  background: #ff758c;
  color: white;
}

.admin .btn {
  background: #a18cd1;
  color: white;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* 优化的跑马灯样式 */
.marquee-container {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  position: relative;
  overflow: hidden;
  min-height: 60px;
}

.marquee-title {
  background: #5A6CCB;
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-block;
  margin: 0 0 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.marquee-wrapper {
  padding: 0 20px;
  position: relative;
  height: 40px;
  overflow: hidden;
}

.marquee-content {
  position: absolute;
  width: 100%;
  transition: transform 0.5s ease;
}

.marquee-item {
  display: flex;
  align-items: center;
  padding: 5px 0;
  color: #555;
  line-height: 1.4;
  transition: opacity 0.5s ease;
}

.marquee-item i {
  margin-right: 10px;
  color: #5A6CCB;
  flex-shrink: 0;
  font-size: 1rem;
}

.marquee-item-text {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}

.marquee-item a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s;
}

.marquee-item a:hover {
  color: #5A6CCB;
}

.marquee-loading {
  padding: 10px 0;
  color: #666;
  text-align: center;
  font-style: italic;
}

.marquee-error {
  padding: 10px 0;
  color: #d9534f;
  text-align: center;
}

.footer {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}

.footer-link {
  text-decoration: none;
  color: #666;
  margin: 0 5px;
}
.footer-link img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

/* 桌面端样式 */
@media (min-width: 769px) {
  .marquee-container {
    height: 50px;
  }

  .marquee-title {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  .marquee-wrapper {
    padding-left: 150px;
    height: 50px;
  }

  .marquee-content {
    display: flex;
    flex-direction: column;
  }
}

/* 移动端样式 */
@media (max-width: 768px) {
  .header {
    padding: 20px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .platforms {
    padding: 20px;
  }

  .platform-card {
    min-width: 100%;
  }

  /* 移动端导航菜单调整 */
  .nav-menu {
    max-width: 95%;
  }

  .nav-menu li {
    min-width: 100px;
  }

  .nav-menu a {
    padding: 10px 8px;
    font-size: 0.9rem;
  }

  .marquee-item-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .marquee-wrapper {
    height: auto;
    min-height: 40px;
  }
}

/* 更小的移动设备 */
@media (max-width: 480px) {
  .nav-menu li {
    min-width: 33.33%;
  }

  .nav-menu a {
    padding: 8px 5px;
    font-size: 0.8rem;
  }
}



/* 浮动广告窗样式 */
.floating-ad {
  position: fixed;
  width: 120px;
  height: 150px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 9999;
  transition: transform 0.5s ease-out;
  display: none;
}

.floating-ad .ad-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-ad .ad-link {
  display: block;
  width: 100%;
  height: 100%;
}

.ad-close {
  position: absolute;
  top: 2px;
  right: 8px;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  z-index: 10000;
}

.ad-close:hover {
  color: #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .floating-ad {
    width: 80px;
    height: 100px;
  }
}

