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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.container {
   max-width: 1200px;
   width: 100%;
   background: rgba(255, 255, 255, 0.95);
   backdrop-filter: blur(10px);
   border-radius: 30px;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
   padding: 40px;
   text-align: center;
   animation: fadeInUp 0.8s ease-out;
}

.header {
    margin-bottom: 60px;
}

.title {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 10px;
}

.subtitle {
    color: #888;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 3px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.xlogo {
   width: 150px;
}
.app-icon {
    /* width: 80px; */
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); */
}

.translate-icon {
    background: transparent; /*linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);*/
}

.kuwa-icon {
    background: transparent; /*linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
}

.browser-icon {
    background: transparent; /*linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);*/
}

.docs-icon {
    background: transparent; /*linear-gradient(135deg, #f093fb 0%, #f5576c 100%);*/
}

.chat-icon {
    background: transparent; /*linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);*/
}

.app-name {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.ai-models {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    background: #a0a0a0;
    padding: 3px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.model-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.model-item:hover {
    transform: scale(1.05);
}

.model-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.gemini-icon {
    background: transparent; /*linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    color: white;
}

.chatgpt-icon {
    background: transparent; /*linear-gradient(135deg, #2c3e50 0%, #3498db 100%);*/
    color: white;
}

.grok-icon {
    background: transparent; /*linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);*/
    color: white;
}

.claude-icon {
    background: transparent; /*linear-gradient(135deg, #f093fb 0%, #f5576c 100%);*/
    color: white;
}

.github-icon {
    background: transparent; /*linear-gradient(135deg, #333 0%, #555 100%);*/
    color: white;
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.github-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.github-icon-small {
    color: #666;
    flex-shrink: 0;
}

.footer-text {
    color: #666;
}

.lang-switcher {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.lang-btn.active {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.model-name {
   font-size: 0.9rem;
   color: #FFF;   /* #666 */
   font-weight: 500;
}

.logo {
   width: 420px;
}

a:link {
   text-decoration: none;
}
a:visited {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
a:active {
  text-decoration: none;
}

/* 響應式設計 */
@media (max-width: 830px) {
   .lang-switcher {
      top: 10px; 
   }
}

@media (max-width: 768px) {
   .container {
      padding: 30px 20px;
      margin: 10px;
   }

   .logo {
     width: 280px;
   }
    
   .lang-switcher {
      top: 12px;
   }

   .title {
       font-size: 2.5rem;
       letter-spacing: 4px;
   }

   .subtitle {
      font-size: 1rem;
      letter-spacing: 2px;
   }

   .apps-grid {
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 20px;
      margin-bottom: 40px;
   }

   .app-icon {
      height: 130px;
      font-size: 1.5rem;
   }

   .app-name {
      font-size: 0.8rem;
   }

   .ai-models {
      gap: 20px;
   }

   .model-icon {
      width: 40px;
      height: 40px;
      font-size: 1.2rem;
   }

   .model-name {
      font-size: 0.8rem;
   }
}

@media (max-width: 480px) {
   .lang-switcher {
      top: 5px;
      right: 10px;
   }
   .container {
      padding: 20px 10px; 
      margin: 35px;
   }
   .header {
      margin-bottom: 42px;
   }
   .apps-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin-bottom: 20px;
   }
   .app-item {
      padding: 16px;
   }
   .app-icon {
      height: 120px;
      font-size: 1rem;
   }

   .title {
      font-size: 2rem;
      letter-spacing: 2px;
   }

   .subtitle {
      font-size: 0.9rem;
      letter-spacing: 1px;
   }

   .ai-models {
      gap: 15px;
   }

   .model-item {
      padding: 10px;
   }

   .footer {
      margin-top: 20px;
      padding-top: 15px;
   }

   .lang-btn {
      padding: 6px 12px;
      font-size: 0.8rem;
   }

   .github-link {
      font-size: 0.8rem;
   }

   .footer-text {
      text-align: center;
      line-height: 1.4;
   }
}

@media (max-width: 390px) {
   .apps-grid {
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
   }
   .app-item {
      padding: 6px;
   }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-item {
    animation: fadeInUp 0.8s ease-out;
}

.model-item {
    animation: fadeInUp 1s ease-out;
}
