:root {
  --primary: #00a2ff;
  --secondary: #00d9ff;
  --accent: #0088cc;
  --dark: #0a1929;
  --darker: #051321;
  --light: #e0f4ff;
  --card-bg: rgba(16, 42, 67, 0.7);
  --neon-glow: 0 0 10px var(--primary), 0 0 20px rgba(0, 162, 255, 0.5);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
  color: var(--light);
  min-height: 100vh;
  padding-bottom: 80px;
  background-attachment: fixed;
}

/* 头部样式 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(5, 19, 33, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 210, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header .ava {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  box-shadow: var(--neon-glow);
}

.header .text p {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--secondary);
}

.header .text-min {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #a0d0ff;
}

.header .text-min img {
  width: 14px;
  height: 14px;
}

.header .right img {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.header .right img:hover {
  transform: rotate(90deg);
}

/* 主横幅区域 */
.banner {
  background: linear-gradient(to right, rgba(0, 130, 200, 0.2), rgba(0, 210, 255, 0.2));
  margin: 20px;
  border-radius: 15px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 162, 255, 0.3);
  box-shadow: var(--neon-glow);
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.banner-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--secondary);
  text-shadow: 0 0 5px var(--primary);
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /*gap: 10px;*/
}

.domain-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 15px;
  border-radius: 30px;
  border: 1px solid var(--accent);
}

.domain-container img {
  width: 24px;
  height: 24px;
}

.domain-container p {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary);
}

.promo-text {
  /*text-align: center;*/
  font-size: 14px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

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

.google-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 30px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.google-logo {
  display: flex;
  font-weight: bold;
}

.google-logo span:nth-child(1) {
  color: #4285f4;
}

.google-logo span:nth-child(2) {
  color: #db4437;
}

.google-logo span:nth-child(3) {
  color: #f4b400;
}

.google-logo span:nth-child(4) {
  color: #4285f4;
}

.google-logo span:nth-child(5) {
  color: #0f9d58;
}

.google-logo span:nth-child(6) {
  color: #db4437;
}

/* 主内容区 */
.main-content {
  margin: 20px;
}

.tabs {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 12px 20px;
  background: var(--card-bg);
  border-radius: 30px;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(0, 162, 255, 0.3);
}

.tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: var(--neon-glow);
}

.content-box {
  display: none;
}

.content-box.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.content-item {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 162, 255, 0.2);
}

.content-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 162, 255, 0.3);
  border-color: var(--primary);
}

.content-item a {
  display: flex;
  flex-direction: column;
  padding: 15px;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.content-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 10px;
  border: 1px solid rgba(0, 162, 255, 0.5);
}

.content-item div {
  text-align: center;
}

.content-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
}

/* 底部悬浮菜单 */
.footer-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 19, 33, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 162, 255, 0.3);
  z-index: 90;
}

.footer-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #a0d0ff;
  font-size: 12px;
  transition: var(--transition);
}

.footer-menu a i {
  font-size: 20px;
  margin-bottom: 5px;
  color: var(--secondary);
}

.footer-menu a:hover {
  color: var(--primary);
}

.footer-menu a:hover i {
  text-shadow: var(--neon-glow);
}

/* 联系弹窗 */
.contact-window {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: var(--darker);
  border-radius: 15px 15px 0 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: bottom 0.4s ease;
  border: 1px solid var(--primary);
  border-bottom: none;
}

.contact-window.active {
  bottom: 70px;
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 15px 15px 0 0;
}

.contact-header span {
  font-weight: 600;
  font-size: 18px;
}

.contact-header button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.contact-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item i {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 162, 255, 0.2);
  border-radius: 50%;
  color: var(--primary);
}

.contact-item div {
  flex: 1;
}

.contact-item h4 {
  font-size: 14px;
  color: #a0d0ff;
  margin-bottom: 5px;
}

.contact-item p {
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary);
}

.qr-code {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-code img {
  width: 150px;
  height: 150px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  margin-bottom: 10px;
}

.qr-code p {
  font-size: 14px;
  color: #a0d0ff;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .banner-title {
    font-size: 18px;
  }

  .content-list {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .contact-window {
    width: 95%;
  }
}

/* 微调最小宽度设备 */
@media (max-width: 350px) {
  .content-list {
    grid-template-columns: 1fr 1fr;
  }

  .header .text p {
    font-size: 14px;
  }

  .header .text-min {
    font-size: 11px;
  }
}

/* 弹出菜单 */
.popup-menu {
  position: fixed;
  top: 80px;
  right: 20px;
  background: var(--card-bg);
  border-radius: 10px;
  padding: 15px;
  display: none;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 99;
  backdrop-filter: blur(10px);
}

.popup-menu.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.popup-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--light);
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}

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

.popup-menu a img {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

/* 提示信息 */
.tishi {
  text-align: center;
  margin: 20px;
  padding: 10px;
  background: rgba(0, 162, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(0, 162, 255, 0.3);
  color: var(--secondary);
}

/* 背景动画元素 */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 162, 255, 0.1) 0%, transparent 70%);
  opacity: 0.5;
}

.u-icon {
    height: 23px;
    width: auto;
    object-fit: contain;
    border-radius: 20px;
}
