/* 航海家澳洲移民网站 - 主样式文件 */

:root {
  --color-primary: #003B79;
  --color-secondary: #FF5A2B;
  --color-accent: #FFD100;
  --color-dark: #333333;
  --color-light: #F5F5F5;
  --color-muted: #666666;
  --color-border: #E5E5E5;
  --color-white: #FFFFFF;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
}

/* 容器 */
.container {
  width: 100%;
  margin: 0 auto;
}

/* 导航栏 */
.navbar {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.navbar-brand img {
  height: 50px;
  width: auto;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.3s;
}

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

/* 下拉菜单 */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: ' ▼';
  font-size: 10px;
  margin-left: 5px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  padding: 10px 0;
  border-radius: 8px;
  margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--color-dark);
  text-decoration: none;
  transition: background 0.3s;
}

.dropdown-menu a:hover {
  background: var(--color-light);
  color: var(--color-primary);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-primary);
}

/* 面包屑导航 */
.breadcrumb {
  padding: 20px 0;
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}

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

/* 搜索框 */
.search-box {
  max-width: 600px;
  margin: 40px auto;
}

.search-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

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

/* 卡片 */
.card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.card-content {
  color: var(--color-muted);
  line-height: 1.8;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #002a5a;
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background: #e04a1b;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

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

/* 表格 */
.table-container {
  overflow-x: auto;
  margin: 30px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
}

thead {
  background: var(--color-light);
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: 600;
  color: var(--color-primary);
}

tr:hover {
  background: var(--color-light);
}

/* 页脚 */
footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 50px 0 30px;
  /* margin-top: 80px; */
}

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

.footer-section h3 {
  color: var(--color-accent);
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-qr {
  width: 150px;
  height: 150px;
  background: var(--color-white);
  padding: 10px;
  border-radius: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-muted);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .navbar-menu.active {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    margin-top: 10px;
    border-left: 3px solid var(--color-primary);
    background: var(--color-light);
  }

  .brand-name {
    font-size: 16px;
  }
}

/* 480px超小屏手机适配 */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .brand-name {
    font-size: 14px;
  }

  .navbar .container {
    padding: 12px 12px;
  }

  .card {
    padding: 15px 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .search-input {
    font-size: 16px;
  }

  .breadcrumb {
    font-size: 12px;
  }

  .tabs {
    flex-wrap: wrap;
    gap: 5px;
  }

  .tab-btn {
    padding: 10px 15px;
    font-size: 14px;
  }

  th, td {
    padding: 10px;
    font-size: 14px;
  }

  footer {
    padding: 30px 0 20px;
  }

  .footer-content {
    gap: 20px;
    margin-bottom: 20px;
  }
}

/* 320px极限小屏适配 */
@media (max-width: 320px) {
  .container {
    padding: 0 10px;
  }

  .card {
    padding: 12px 15px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .card-title {
    font-size: 18px;
  }

  th, td {
    padding: 8px;
    font-size: 12px;
  }
}

/* 官方链接页面样式 */
.link-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.link-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.link-item {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.link-item:last-child {
  border-bottom: 0;
}

.transition-custom {
  transition: all 0.3s ease;
}

/* 工具类 */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-muted { color: var(--color-muted); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.py-40 { padding: 40px 0; }
.py-60 { padding: 60px 0; }

/* 网格布局 */
.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* 标签页 */
.tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 30px;
}

.tab-btn {
  padding: 12px 25px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s;
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* 统计数据展示 */
.stat-box {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: var(--color-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 团队卡片 */
.team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 - 统计数据 */
@media (max-width: 768px) {
  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 11px;
  }
}

/* 修复白色文字容器中的标题颜色继承问题 */
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white h5,
.text-white h6 {
  color: inherit !important;
}

/* 修复渐变背景容器中的标题颜色 */
[class*="bg-gradient"] h1,
[class*="bg-gradient"] h2,
[class*="bg-gradient"] h3,
[class*="bg-gradient"] h4,
[class*="bg-gradient"] h5,
[class*="bg-gradient"] h6 {
  color: inherit !important;
}
