/* 27CGame - 公共样式 */

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* Logo 区域 */
.logo-section {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 42px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.logo-subtitle {
  font-size: 16px;
  color: #666;
}

/* 广告轮播 */
.ad-banner {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.ad-carousel {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.ad-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.ad-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ad-slide .content {
  text-align: center;
  color: #fff;
  z-index: 2;
}

.ad-slide .text {
  font-size: 28px;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
}

.ad-slide .contact {
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 25px;
  border-radius: 20px;
  display: inline-block;
}

.ad-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.ad-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
}

.ad-indicator.active {
  background: #fff;
  transform: scale(1.2);
}

.ad-prev, .ad-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 3;
  transition: all 0.3s;
  border-radius: 5px;
}

.ad-prev:hover, .ad-next:hover {
  background: rgba(255, 255, 255, 0.5);
}

.ad-prev { left: 15px; }
.ad-next { right: 15px; }

/* 返回按钮 */
.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s;
  z-index: 1000;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* 页脚 */
.footer {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-top: 20px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
  .logo { font-size: 32px; }
  .ad-carousel { height: 120px; }
}
