/* XCoding Coming Soon Page - Shared Styles */

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

html, body {
  height: 100%;
  background: url('bg.png') no-repeat center center / cover;
  font-family: 'Inter', 'Microsoft Yahei', 'Hiragino Sans', 'Yu Gothic', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Segoe UI', 'Roboto', sans-serif;
  color: white;
  text-align: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  z-index: 0;
}

.content {
  position: relative;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  padding: 2rem 20px 4rem 20px;
  width: 100%;
  margin: 0;
  overflow: visible;
  min-height: auto;
  text-align: center;
}

h1 {
  font-size: 4.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: visible;
  padding-bottom: 0.5em;
  text-align: center;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  display: block;
}

/* 日语页面特殊处理 - 减小字体以适应一行显示 */
html[lang="ja"] h1 {
  font-size: 3.4rem;
}

.brand-name {
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  text-shadow: none;
  display: inline-block;
  line-height: 1.5;
  vertical-align: baseline;
  padding: 0.1em 0 0.3em 0;
  margin: 0;
  /* 备用颜色，以防 webkit 属性不支持 */
  color: #f5576c;
}

/* 确保支持 webkit 的浏览器使用透明文字 */
@supports (-webkit-background-clip: text) {
  .brand-name {
    color: transparent;
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 300;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.coming-soon {
  font-size: 2.2rem;
  animation: pulse 2s ease-in-out infinite;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.4);
  margin-top: 10rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.4);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 60px rgba(255, 255, 255, 0.6);
  }
}

.language-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 10;
}

.language-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 40px;
  text-decoration: none;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(15px);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.language-menu:hover .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.language-option:last-child {
  border-bottom: none;
  border-radius: 0 0 12px 12px;
}

.language-option:first-child {
  border-radius: 12px 12px 0 0;
}

.language-option:hover {
  background: rgba(255, 255, 255, 0.2);
}

.language-option.current {
  background: rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content {
    padding: 2rem 15px 4rem 15px;
  }

  h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    white-space: nowrap;
    padding-bottom: 0.5em;
  }

  /* 日语页面在中等屏幕的特殊处理 */
  html[lang="ja"] h1 {
    font-size: 2.6rem;
  }

  /* 日语页面在中等屏幕的特殊处理 */
  html[lang="ja"] h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }
  
  .coming-soon {
    font-size: 1.8rem;
  }
  
  .language-menu {
    top: 20px;
    right: 20px;
  }

  .language-toggle {
    font-size: 1rem;
    min-width: 70px;
    height: 36px;
    padding: 8px 12px;
  }

  .language-dropdown {
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 2rem 10px 4rem 10px;
  }

  h1 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    white-space: nowrap;
    padding-bottom: 0.5em;
  }

  /* 日语页面在小屏幕的特殊处理 */
  html[lang="ja"] h1 {
    font-size: 2.0rem;
  }
  
  h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .coming-soon {
    font-size: 1.5rem;
  }
  
  .language-menu {
    top: 15px;
    right: 15px;
  }

  .language-toggle {
    font-size: 0.9rem;
    min-width: 60px;
    height: 32px;
    padding: 6px 10px;
  }

  .language-dropdown {
    min-width: 120px;
  }

  .language-option {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}
