@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');


:root {
    --dark-blue: #0f2442;  /* 深暗藍（接近黑）*/
    --navy-blue: #1a1a40;  /* 啞光海軍藍 */
    --soft-blue: #2d2d5a;   /* 按鈕用藍 */
    --white: #e6e6e6;       /* 柔白 */
    --black: #1b1b1b;       /* 深黑 */
    --gray: #4e4e4e;
    --highlight: #4dff4d;   /* 柔和軍事綠 */
    --background: #111827;
    --nav: #1f2937;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    background-color: var(--background);
    margin: 0;
    padding: 0;
}

header h1 {
    font-size: 1.5rem;
    margin: 0;
    white-space: nowrap;    /* 防止标题换行 */
}

header {
    background-color: var(--background);
    padding: 25px;
    display: flex;           /* 启用弹性布局 */
    align-items: center;     /* 垂直居中 */
    justify-content: space-between; /* 标题左，按钮右 */
    border-bottom: 1px solid var(--nav);
}

header h1 {
    font-size: 1rem; /* 超小标题 */
    letter-spacing: 0; /* 取消字母间距 */
}

footer {
    font-size: 0.7rem;
    text-align: center; /* 新增呢行 */
    background-color: var(--background);
    color: var(--white);
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--nav);
}

footer p {
    margin: 5px 0; /* 調整段落間距 */
}

.disclaimer {
    font-size: 0.8em;
    opacity: 0.8;
}


nav {
    display: flex;
    gap: 4px;               /* 按钮间距 */
    background: transparent; /* 移除背景色 */
    padding: 0;
}

nav a {
    border-radius: 4px;
    color: var(--white);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--);
    font-size: 0.9rem;
    white-space: nowrap;    /* 防止按钮文字换行 */
    transition: all 0.2s;
}

nav a:hover {
    background-color: var(--nav);
    color: var(--white);
    box-shadow: 0 4px 10px black;
    border: 0.5px solid white;
}

.container {
    padding: 0 0 0 20px;     /* 左側內距 */
    margin: 10px auto 0 0;   /* 取消自動居中 */
}

.icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;  /* 固定容器大小 */
  height: 50px;
  background: var(--background);
  border-radius: 50%;
}

.btn {
    display: inline-block;
    background-color: var(--soft-blue);
    color: var(--white);
    border: 1px solid var(--highlight);
    margin: 5px 10px 5px 0;  /* 左上對齊間距 */
    text-align: left;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* 社交媒体图标 */
.social-links {
    display: flex;
    justify-content: center;
    vertical-align: middle;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    color: var(--white);
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    background-color: transparent;
    background-color: var(--background);
    transition: transform 0.3s;
}

/* 移除所有社交图标的下划线 */
.social-links a {
  text-decoration: none !important;
}

/* 如果仍有残留边框/线条，添加以下规则 */
.social-links .social-icon {
  border-bottom: none !important;
  box-shadow: none !important;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Discord 图标专属样式 */
.social-icon.discord i {
  color: #5865F2; /* Discord 蓝 */
}

/* 游戏手柄图标专属样式 */
.social-icon.twitter i {
  color: #00A2FF; /* Roblox 蓝 */
}

.social-icon.youtube i {
    color: #ff0000; /* YouTube 红 */
}

/* Cards Container */
.cards-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

/* Military Card Style */
.military-card {
  width: 220px;
  height: 280px;
  background: var(--background);
  border: 2px solid var(--highlight);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
}

.military-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 0, 0.4);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--highlight);
  margin-bottom: 20px;
}

.military-card h3 {
  position: relative;
  top: 150px;
  color: white;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.military-card p {
  position: relative;
  top: 150px;
  color: #aaa;
  font-size: 0.9rem;
}

.military-card a {
    position: relative;
    top: 70px;
    right: 40px;
    display: inline-block;
    margin-top: 10px;
    padding: 5px 16px;
    color: var(--white);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.military-card img {
    position: relative;
    bottom: 100px;
    left: 60px;
    width: 40%;
    border-radius: 50px;
    border: 1px solid var(--white);
    height: auto;
    margin-top: 10px;
}


/* 响应式设计 */

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav {
        margin-top: 10px;
        flex-wrap: wrap;  /* 小屏幕时按钮换行 */
    }
}

