:root {
  --pink-primary: #ff8eb4;
  --pink-light: #ffb6d9;
  --blue-primary: #00a1d6;
  --blue-light: #7fd1ff;
  --white: #ffffff;
  --gray-light: #f4f4f4;
  --shadow: rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f7ff 100%);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 装饰气泡 */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-light), var(--blue-light));
  opacity: 0.1;
  z-index: -1;
  animation: floatBubble 20s infinite linear;
}

.bubble:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 5%;
  animation-duration: 25s;
}

.bubble:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 60%;
  right: 10%;
  animation-duration: 20s;
  animation-delay: 2s;
}

.bubble:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 15%;
  animation-duration: 18s;
  animation-delay: 4s;
}

.bubble:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 20%;
  right: 15%;
  animation-duration: 22s;
  animation-delay: 1s;
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(90deg); }
  50% { transform: translateY(0) rotate(180deg); }
  75% { transform: translateY(20px) rotate(270deg); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.header {
  background: linear-gradient(135deg, var(--pink-primary), var(--blue-primary));
  padding: 15px 0;
  box-shadow: 0 4px 12px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-primary);
  font-weight: bold;
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* 适应小屏幕 */
}

.nav-item {
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  transition: var(--transition);
  position: relative;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 16px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.nav-item:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.nav-item:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: white;
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-item:hover:after {
  width: 70%;
}

.tab-input {
  display: none;
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease forwards;
}

#tab-about:checked ~ .container #content-about,
#tab-equipment:checked ~ .container #content-equipment,
#tab-antenna:checked ~ .container #content-antenna,
#tab-contact:checked ~ .container #content-contact,
#tab-log:checked ~ .container #content-log {
  display: block;
}

#tab-about:checked ~ .header .nav-links label[for="tab-about"],
#tab-equipment:checked ~ .header .nav-links label[for="tab-equipment"],
#tab-antenna:checked ~ .header .nav-links label[for="tab-antenna"],
#tab-contact:checked ~ .header .nav-links label[for="tab-contact"],
#tab-log:checked ~ .header .nav-links label[for="tab-log"] {
  background-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

#tab-about:checked ~ .header .nav-links label[for="tab-about"]:after,
#tab-equipment:checked ~ .header .nav-links label[for="tab-equipment"]:after,
#tab-antenna:checked ~ .header .nav-links label[for="tab-antenna"]:after,
#tab-contact:checked ~ .header .nav-links label[for="tab-contact"]:after,
#tab-log:checked ~ .header .nav-links label[for="tab-log"]:after {
  width: 70%;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.main-content {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.sidebar {
  flex: 0 0 280px;
}

.profile-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px var(--shadow);
  text-align: center;
  margin-bottom: 20px;
  transition: var(--transition);
  border-top: 5px solid var(--pink-primary);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 5px solid var(--pink-light);
  margin: 0 auto 20px;
  overflow: hidden;
  background: linear-gradient(45deg, var(--pink-light), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,142,180,0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255,142,180,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,142,180,0); }
}

.callsign {
  font-size: 28px;
  font-weight: bold;
  color: var(--blue-primary);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.badge {
  background: var(--pink-light);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.badge.blue {
  background: var(--blue-light);
}

.content-area {
  flex: 1;
}

.section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow);
  margin-bottom: 30px;
  transition: var(--transition);
  border-left: 5px solid var(--blue-primary);
}

.section:hover {
  box-shadow: 0 8px 20px var(--shadow);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-primary);
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pink-light);
}

.section-title .icon {
  width: 30px;
  height: 30px;
  background: var(--pink-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.section-title.en {
  color: var(--pink-primary);
  font-size: 18px;
  margin-top: 5px;
  border-bottom: 1px solid var(--blue-light);
}

.bilingual {
  margin-bottom: 25px;
}

.bilingual:last-child {
  margin-bottom: 0;
}

.bilingual p {
  margin-bottom: 10px;
}

.bilingual .en {
  color: #666;
  font-style: italic;
  padding-left: 15px;
  border-left: 3px solid var(--blue-light);
  margin-top: 5px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.equipment-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px var(--shadow);
  transition: var(--transition);
  background: white;
  border-top: 3px solid var(--pink-primary);
}

.equipment-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px var(--shadow);
}

.equipment-img {
  height: 80px;
  background: rgba(255,182,217,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink-primary);
  font-size: 30px;
  border-radius: 10px 10px 0 0;
}

.equipment-info {
  padding: 15px;
}

.equipment-info h3 {
  color: var(--blue-primary);
  margin-bottom: 5px;
}

.equipment-info p {
  color: #666;
  font-size: 14px;
}

.antenna-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.antenna-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  background: var(--gray-light);
  transition: var(--transition);
  border-left: 4px solid var(--blue-primary);
}

.antenna-item:hover {
  background: #e8f4ff;
  transform: translateX(5px);
}

.antenna-icon {
  width: 50px;
  height: 50px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  flex-shrink: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px 20px;
  margin-top: 20px;
}

.info-label {
  font-weight: bold;
  color: var(--blue-primary);
  background: rgba(127,209,255,0.1);
  padding: 8px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-label:before {
  content: "✓";
  font-size: 14px;
}

.info-value {
  padding: 8px 15px;
  background: rgba(255,182,217,0.05);
  border-radius: 8px;
  border-left: 3px solid var(--pink-light);
  line-height: 1.5;
}

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

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--gray-light);
  border-radius: 10px;
  color: #333;
  transition: var(--transition);
  flex: 1;
  min-width: 200px;
  cursor: pointer;
  border: none;
  font-size: 16px;
  text-decoration: none;
}

.contact-link:hover {
  background: var(--pink-light);
  color: white;
  transform: translateY(-3px);
}

.contact-icon {
  width: 30px;
  height: 30px;
  background: var(--blue-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.email-box {
  font-size: 20px;
  color: var(--blue-primary);
  font-weight: bold;
  padding: 15px;
  background: linear-gradient(90deg, rgba(255,142,180,0.1), rgba(127,209,255,0.1));
  border-radius: 10px;
  margin: 20px 0;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 2px dashed var(--pink-light);
}

.email-box:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0,161,214,0.2);
  border-color: var(--blue-primary);
}

.qsl-text {
  position: relative;
  padding: 20px;
  border-radius: 10px;
  line-height: 1.8;
  transition: var(--transition);
  margin-bottom: 20px;
}

.chinese-text {
  background: rgba(255,182,217,0.08);
  border: 1px solid rgba(255,142,180,0.2);
}

.english-text {
  background: rgba(127,209,255,0.08);
  border: 1px solid rgba(0,161,214,0.2);
  font-style: italic;
}

.footer {
  background: linear-gradient(135deg, var(--blue-primary), var(--pink-primary));
  color: white;
  text-align: center;
  padding: 25px 0;
  margin-top: 40px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.footer p {
  margin-bottom: 10px;
}

.qrz-link {
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.2);
  display: inline-block;
  margin: 10px;
  text-decoration: none;
  transition: var(--transition);
}

.qrz-link:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.background-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
  margin-bottom: 30px;
  transition: var(--transition);
  filter: brightness(0.9) contrast(1.1);
}

.background-img:hover {
  transform: scale(1.01);
  box-shadow: 0 15px 40px var(--shadow);
}

.welcome-message {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px var(--shadow);
  margin: 30px 0;
  border-left: 5px solid var(--pink-primary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.welcome-message:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.chinese, .english {
  padding: 10px 15px;
  border-radius: 10px;
  transition: var(--transition);
}

.chinese {
  background: rgba(255,182,217,0.1);
  border-left: 3px solid var(--pink-primary);
}

.english {
  background: rgba(127,209,255,0.1);
  border-left: 3px solid var(--blue-primary);
  font-style: italic;
}

.highlight {
  color: var(--blue-primary);
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.highlight:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--pink-primary), var(--blue-primary));
  border-radius: 1px;
}

/* ========== 新增：iframe 容器样式 ========== */
.iframe-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow);
  padding: 20px;
  margin-top: 30px;
  transition: var(--transition);
  border-left: 5px solid var(--blue-primary);
}

.iframe-container:hover {
  box-shadow: 0 8px 20px var(--shadow);
}

.log-iframe {
  width: 100%;
  height: 600px;
  border: 1px solid var(--pink-light);
  border-radius: 10px;
  background: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .log-iframe {
    height: 450px;
  }
}

@media (max-width: 992px) {
  .main-content { flex-direction: column; }
  .sidebar { flex: none; width: 100%; }
  .nav { flex-direction: column; gap: 15px; }
  .nav-links { justify-content: center; }
}

@media (max-width: 768px) {
  .equipment-grid { grid-template-columns: 1fr; }
  .contact-link { min-width: 100%; }
  .info-grid { grid-template-columns: 1fr; }
}

/* 让导航项内部垂直排列 */
.nav-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  padding: 6px 16px; /* 微调内边距，适应两行文字 */
}

/* 中文样式 */
.nav-chinese {
  font-size: 16px;
  font-weight: 500;
}

/* 英文样式 */
.nav-english {
  font-size: 12px;
  opacity: 0.9;
  text-shadow: none;
  letter-spacing: 0.3px;
}

/* 可选：调整激活状态的下划线位置（保持原有效果） */
.nav-item:after {
  bottom: 2px; /* 稍微下移，避免被英文遮挡 */
}