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

body {
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

html, body {
  height: 100%;
  margin: 0;
}

.no-underline {
  text-decoration: none;
}


.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
}

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

.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.contact-btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
}

.telegram { background: #0088cc; }
.discord { background: #7289da; }
.youtube { background: #ea4335; }
.site-international { background: #0088cc; }
.site-china { background: #7289da; }
.email { background: #72891a; }
.qa-en { background: #ea4335; }
.qa-zh { background: #ea8335; }
.dev-log { background: #2a4335; }

.download-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.download-btn {
    display: inline-block;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 10px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.safe-button {
  background: linear-gradient(to bottom, #6de88a, #3cbf61); /* 漸層綠色 */
  color: white;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(60, 191, 97, 0.4), inset 0 1px 0 rgba(255,255,255,0.6);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.safe-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: rgba(255, 255, 255, 0.3);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  pointer-events: none;
}

.safe-button:hover {
  box-shadow: 0 6px 14px rgba(60, 191, 97, 0.5);
  transform: translateY(-1px);
}

.safe-button:active {
  transform: scale(0.98);
}

.section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #667eea;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.section h3 {
    font-size: 1.4rem;
    margin: 20px 0 10px 0;
    color: #764ba2;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateX(5px);
}

.steps {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.step-number {
    background: #667eea;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-appid {
    background: #667eea;
    color: white;
    border-radius: 10%;
    width: 100px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}
 .step-gamename a {
    margin-left: 10px;
  }

.notice {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
}

.benefits {
    background: linear-gradient(45deg, #ff3b6b, #ffa726);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

.fan-groups {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
}

.fan-group {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tool-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.security-info {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 20px;
    }
}

.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-wrapper .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 14px;
  z-index: 100;
  transition: opacity 0.3s;
}

.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.floating-btn-right {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #567eea;
    color: white;
    padding: 10px 15px;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 14px;
    z-index: 9999;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* 或 center，看你想要寬度是否對齊 */
    gap: 10px; /* 按鈕之間間距 */
}
.floating-btn-right:hover {
    background-color: #664ba2;
}
  
.floating-top-left {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.happy {
  background-color: #fffae6;
  color: #d35400;
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 0 10px #f39c12;
  animation: glow 1.5s infinite alternate;
  animation: textBounce 1s infinite;
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px #f39c12;
  }
  to {
    box-shadow: 0 0 20px #f1c40f;
  }
}
@keyframes textBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.img-default {
  max-width: 200px;
  max-height: 100px;
  height: auto;
  width: auto;
}
.gallery img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s;
  margin: 5px;
}

.gallery img:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

.shake {
  display: inline-block;
  animation: shake 0.6s infinite;
}
