:root {
  --primary-color: #333;
  --japan-color: #B6374E;
  --philippines-color: #2E53AC;
  --usa-color: #D44951;
  --eu-color: #800080;
  --uk-color: #00008B;
  --australia-color: #008000;
  --bg-color: #f5f5f5;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
}

/* 页头样式 */
header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 主要内容区样式 */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.country-section {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.country-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.country-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.country-section h2 span {
  font-size: 1.8rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button-group a {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 120px;
}

/* 国家按钮颜色 */
#japan .button-group a { background-color: var(--japan-color); }
#philippines .button-group a { background-color: var(--philippines-color); }
#usa .button-group a { background-color: var(--usa-color); }
#eu .button-group a { background-color: var(--eu-color); }
#uk .button-group a { background-color: var(--uk-color); }
#australia .button-group a { background-color: var(--australia-color); }

.button-group a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* 页脚样式 */
footer {
  background-color: #fff;
  padding: 3rem 2rem;
  margin-top: 3rem;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  color: #555;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  background-color: #f8f8f8;
  min-width: 280px;
  justify-content: center;
  font-weight: 500;
  border: 1px solid #eee;
}

/* 为不同的联系方式设置不同的悬停颜色 */
.contact-link[href^="https://t.me"]:hover {
  background-color: #0088cc20;
  border-color: #0088cc;
  color: #0088cc;
}

.contact-link[href^="skype"]:hover {
  background-color: #00aff020;
  border-color: #00aff0;
  color: #00aff0;
}

.contact-link[href^="mailto"]:hover {
  background-color: #ea400020;
  border-color: #ea4000;
  color: #ea4000;
}

.contact-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-icon {
  margin-right: 1rem;
  font-size: 1.4em;
  transition: transform 0.3s ease;
}

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

.footer-links {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  margin: 0 1.5rem;
  padding: 0.5rem 0;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.footer-links a:hover::after {
  transform: scaleX(1);
}

/* 响应式调整 */
@media screen and (min-width: 768px) {
  .contact-info {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .contact-link {
    min-width: 220px;
  }
}

@media screen and (max-width: 768px) {
  .contact-link {
    width: 100%;
    padding: 0.8rem 1.5rem;
  }
  
  footer {
    padding: 2rem 1rem;
  }
  
  .footer-links a {
    display: block;
    margin: 0.5rem 0;
  }
}

/* 通知提示样式 */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #333;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  animation: slideIn 0.3s ease;
  z-index: 1000;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 加载动画 */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  nav {
    grid-template-columns: 1fr;
  }
  
  .country-section {
    margin-bottom: 1rem;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .button-group a {
    width: 100%;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  header p {
    font-size: 1rem;
  }
}

/* 特殊链接样式优化 */
.special-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.special-link .icon {
  margin-right: 8px;
  font-size: 1.2em;
}

.special-link:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 添加工具提示 */
.special-link[data-tooltip]:before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 0.9em;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.special-link[data-tooltip]:hover:before {
  opacity: 1;
  visibility: visible;
  bottom: -45px;
}

/* 添加点击效果 */
.special-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
  .special-link {
    padding: 0.6rem 1.5rem;
    font-size: 0.9em;
  }
  
  .special-link[data-tooltip]:before {
    display: none; /* 在移动端隐藏工具提示 */
  }
}

/* 响应式调整 */
@media screen and (min-width: 768px) {
  .contact-info {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tool-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tool-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.tool-card p {
  margin: 0;
  color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
} 