/* 全局样式 */
:root {
    --primary-color: #8e6e53;
    --secondary-color: #d4b483;
    --accent-color: #c19a6b;
    --text-dark: #333;
    --text-light: #f8f8f8;
    --transition-speed: 0.3s;
}
 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
body {
    font-family: 'Noto Serif SC', serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #f9f5f0;
}
 
/* 音乐控制 */
.music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}
 
#music-toggle {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Noto Serif SC', serif;
    transition: all var(--transition-speed) ease;
}
 
#music-toggle:hover {
    background: var(--primary-color);
}
 
/* 头部样式 */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}
 
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
 
.logo {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}
 
.slogan {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 0.5rem;
    letter-spacing: 1px;
}
 

/* 全屏布局基础设置 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
 
/* 主容器 - 全屏显示 */
.fullscreen-grid {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
}
 
/* 四宫格容器 - 占据左侧50% */
.four-grid-container {
    width: 50%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    z-index: 10;
}
 
/* 网格项样式 */
.grid-item {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
 
.grid-item:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
 
/* 背景图片设置 */
.bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transition: all 0.5s ease;
}
 
.grid-item:hover .bg-image {
    filter: brightness(0.5);
    transform: scale(1.1);
}
 
/* 内容样式 */
.item-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 20px;
    max-width: 80%;
}
 
/* 女主角背景设置 */
.heroine-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 57%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* 女主角图片样式 */
.heroine-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9);
    /* 禁止拖拽和右键保存的样式 */
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -ms-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}
 

 
/* 悬浮按钮调整 */
.center-floating-shop {
    position: absolute;
    top: 50%;
    left: 25%; /* 位于左侧50%区域的中间 */
    transform: translate(-50%, -50%);
    z-index: 100;
}

 
/* 设置各板块背景图片 */
#dance .bg-image {
    background-image: url('https://images.unsplash.com/photo-1547153760-18fc86324498?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); 
}
 
#tcm .bg-image {
    background-image: url('https://images.unsplash.com/photo-1547981609-4ab6e0a1b2f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); 
}
 
#baduanjin .bg-image {
    background-image: url('https://images.unsplash.com/photo-1545205597-3d9d02c29597?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); 
}
 
#yijing .bg-image {
    background-image: url('https://images.unsplash.com/photo-1547981609-4ab6e0a1b2f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80'); 
}
 
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: all var(--transition-speed) ease;
}
 
.grid-item:hover .overlay {
    background-color: rgba(0, 0, 0, 0.2);
}
 
.grid-item:hover .bg-image {
    transform: scale(1.05);
}
 
.item-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-speed) ease;
}
 
.grid-item:hover .item-content {
    transform: translateY(0);
    opacity: 1;
}
 
.item-content h2 {
    color: var(--text-light);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
 
.item-content p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
 
.explore-btn {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
}
 
.explore-btn:hover {
    background: var(--text-light);
    color: var(--text-dark);
}
 






 
 
 
 

/* 中央悬浮商城按钮 */
.center-floating-shop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
}
 
.concentric-circles {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}
 
.outer-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 3s infinite ease-in-out;
}
 
.middle-circle {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: pulse 2.5s infinite ease-in-out 0.5s;
}
 
.inner-circle {
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
 
.inner-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
 
.inner-circle svg {
    width: 24px;
    height: 24px;
    fill: white;
}
 
.inner-circle span {
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
}
 
/* 二维码弹出框 */
.qrcode-popup {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) ease;
    z-index: 300;
}
 
.qrcode-popup.active  {
    opacity: 1;
    visibility: visible;
}
 
.qrcode-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
 
.qrcode-content img {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
}
 
.qrcode-content p {
    color: var(--text-dark);
    margin: 5px 0;
}
 
.qrcode-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}
 
.qrcode-content a:hover {
    text-decoration: underline;
}
 
/* 右下角悬浮商城按钮 */
.floating-shop-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}
 
.floating-shop-btn {
    display: flex;
    align-items: center;
    background: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
}
 
.floating-shop-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
 
.shop-icon {
    margin-right: 8px;
}
 
.shop-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}
 
/* 页脚样式 */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}
 
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
 
.footer-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
 
.social-links {
    display: flex;
    gap: 15px;
}
 
.social-icon {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition-speed) ease;
}
 
.social-icon:hover {
    color: var(--secondary-color);
}
 
/* 动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}









/* 新增的悬浮按钮样式 */
.floating-btn-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.floating-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8e44ad, #3498db);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.floating-btn i {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.floating-btn span {
    font-weight: bold;
}

/* 悬浮按钮动画效果 */
.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.7);
}

.floating-btn:hover::before {
    transform: scale(1);
}

.floating-btn:active {
    transform: scale(0.95);
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(142, 68, 173, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(142, 68, 173, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(142, 68, 173, 0);
    }
}

/* 调整网格布局以适应悬浮按钮 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    min-height: 60vh;
}

/* 其他原有样式保持不变... */




/* 简单椭圆形悬浮按钮 */
.simple-floating-btn {
  position: fixed;
  right: 250px;
  bottom: 25px;
  width: 400px;
  height: 40px;
  background: rgba(0, 102, 204, 0.3); /* 半透明蓝色背景 */
  border: 1px solid rgba(255, 255, 255, 0.1); /* 白色半透明边框 */
  border-radius: 60px; /* 椭圆形 */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  backdrop-filter: blur(5px); /* 毛玻璃效果 */
  transition: all 0.3s ease;
}

.simple-floating-btn span {
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 悬停效果 */
.simple-floating-btn:hover {
  background: rgba(0, 102, 204, 0.5);
  transform: scale(1.05);
}











