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

:root {
  --primary: #0A2342; /* 深蓝主色 - 无线电专业感 */
  --secondary: #FFC107; /* 黄色点缀 - 黄河/警示色 */
  --light: #F8F9FA;
  --dark: #212529;
  --gray: #6C757D;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --success: #28a745;
  --error: #dc3545;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #f5f7fa;
  overflow-x: hidden;
}

/* 导航栏 */
.navbar {
  background: var(--primary);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}

.logo i {
  font-size: 1.8rem;
  color: var(--secondary);
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 500;
}

.nav-btn {
  background: var(--secondary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-btn:hover {
  background: #e6ac00;
  transform: translateY(-2px);
}

/* 头部横幅 */
.hero {
  margin-top: 70px;
  background: linear-gradient(rgba(10,35,66,0.9), rgba(10,35,66,0.95)), 
              url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=1920') center/cover no-repeat;
  padding: 6rem 2rem;
  text-align: center;
  color: white;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero h1 span {
  color: var(--secondary);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-main {
  background: var(--secondary);
  color: var(--primary);
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255,193,7,0.3);
}

.btn-outline {
  background: transparent;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  border: 2px solid var(--secondary);
  transition: 0.3s;
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* 通用容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background: var(--secondary);
  display: block;
  margin: 10px auto;
  border-radius: 2px;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--gray);
  font-size: 1rem;
}

/* 升级公告 */
.notice {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
  border-left: 5px solid var(--secondary);
}

.notice h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice h3 i {
  color: var(--secondary);
}

.notice p {
  color: var(--gray);
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

/* 升级功能 */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: 0.3s;
}

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

.feature-card i {
  font-size: 2.5rem;
  color: var(--secondary);
  background: rgba(255,193,7,0.1);
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray);
}

/* 使用指南 */
.guide {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed #ddd;
}

.guide-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-num {
  background: var(--primary);
  color: white;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  border-radius: 50%;
  flex-shrink: 0;
  font-weight: bold;
}

.step-content h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--gray);
}

/* 查询模块 */
.query-section {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow);
}

.query-form {
  max-width: 700px;
  margin: 0 auto;
}

/* 查询类型选择 */
.query-type-group {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.query-type-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  transition: 0.3s;
  background: white;
}

.query-type-label:hover {
  border-color: var(--primary);
}

.query-type-label input[type="radio"] {
  display: none;
}

.query-type-label span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  transition: 0.3s;
  font-weight: 500;
}

/* 选中状态 - input:checked + span 选择器（兼容性更好）*/
.query-type-label input[type="radio"]:checked + span {
  color: white;
  font-weight: 600;
}

/* 选中状态 - label背景变色（使用:has选择器）*/
.query-type-label:has(input[type="radio"]:checked) {
  background: var(--primary);
  border-color: var(--primary);
}

/* 兼容旧浏览器 - 使用JS添加的class */
.query-type-label.checked {
  background: var(--primary);
  border-color: var(--primary);
}

.query-type-label.checked span {
  color: white;
  font-weight: 600;
}

/* 输入框组 */
.input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.query-input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.query-input:focus {
  border-color: var(--primary);
}

/* 验证码行 */
.captcha-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.captcha-input {
  flex: 1;
  max-width: 200px;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: 0.3s;
}

.captcha-input:focus {
  border-color: var(--primary);
}

.captcha-img {
  cursor: pointer;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: 0.3s;
  height: 46px;
}

.captcha-img:hover {
  border-color: var(--primary);
}

.query-hint {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* 查询结果面板 */
.result-panel {
  margin-top: 2rem;
  border-radius: 12px;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  scroll-margin-top: 80px; /* 锚点跳转时避开导航栏 */
}

#result {
  scroll-margin-top: 100px; /* 锚点跳转偏移量 */
}

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

.result-panel.success {
  border: 2px solid var(--success);
}

.result-panel.error {
  border: 2px solid var(--error);
}

.result-header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.result-panel.success .result-header {
  background: #d4edda;
  color: var(--success);
}

.result-panel.error .result-header {
  background: #f8d7da;
  color: var(--error);
}

.result-header i {
  font-size: 1.2rem;
}

/* 结果表格 */
.result-table-wrapper {
  overflow-x: auto;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
}

.result-table th {
  background: var(--primary);
  color: white;
  padding: 15px 12px;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

.result-table th i {
  margin-right: 8px;
  color: var(--secondary);
}

.result-table td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.result-table tr:hover {
  background: #f8f9fa;
}

.result-table td strong {
  color: var(--primary);
}

.result-table code {
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--primary);
}

/* 页脚 */
footer {
  background: var(--primary);
  color: white;
  padding: 3rem 2rem 1rem;
}

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

.footer-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--secondary);
  position: absolute;
  left: 0;
  bottom: 0;
}

.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  margin-bottom: 0.8rem;
  display: block;
  transition: 0.3s;
}

.footer-col a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-col .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .input-group {
    flex-direction: column;
  }
  
  .input-group .btn-main {
    width: 100%;
  }

  .query-section {
    padding: 2rem 1.5rem;
  }
  
  .query-type-group {
    flex-direction: column;
    align-items: stretch;
  }
  
  .captcha-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .captcha-input {
    max-width: 100%;
  }
  
  .captcha-img {
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
  }
  
  .result-table th,
  .result-table td {
    padding: 10px 8px;
    font-size: 0.9rem;
  }
}

/* 后台管理样式 */
.admin-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.admin-card {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow);
  margin-top: 100px;
}

.admin-title {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.admin-form .form-group {
  margin-bottom: 1.5rem;
}

.admin-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-weight: 500;
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
  font-family: inherit;
}

.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--primary);
}

.admin-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.admin-btn:hover {
  background: #0d2d52;
  transform: translateY(-2px);
}

.admin-link {
  text-align: center;
  margin-top: 1.5rem;
}

.admin-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.admin-link a:hover {
  text-decoration: underline;
}

/* 后台管理面板 */
.admin-panel {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-top: 100px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.admin-header h2 {
  color: var(--primary);
}

.logout-btn {
  background: var(--gray);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.logout-btn:hover {
  background: var(--dark);
}

.import-section {
  margin-bottom: 2rem;
}

.import-section h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.hint-box {
  background: #f8f9fa;
  border-left: 4px solid var(--secondary);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--gray);
}

.hint-box strong {
  color: var(--primary);
}

/* 数据表格 */
.data-table-section {
  margin-top: 2rem;
}

.data-table-section h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.full-table {
  width: 100%;
  border-collapse: collapse;
}

.full-table th {
  background: var(--primary);
  color: white;
  padding: 12px;
  text-align: left;
  position: sticky;
  top: 0;
}

.full-table td {
  padding: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.full-table tr:hover {
  background: #f8f9fa;
}

.delete-btn {
  background: var(--error);
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.3s;
}

.delete-btn:hover {
  background: #c82333;
}

.no-data {
  text-align: center;
  color: var(--gray);
  padding: 3rem;
}

/* 提示消息 */
.alert-box {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: none;
}

.alert-box.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.alert-box.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: var(--success);
}

.alert-box.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: var(--error);
}
