/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: url('./2.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-size: cover;
    filter: blur(3px);
    z-index: -1;
}

.content {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    min-height: 100vh;
    border-radius: 10px;
    margin-bottom: 100px;
    backdrop-filter: blur(2px);
}


/* 页面标题 */
h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.8rem;
    color: #333;
}


/* 主图背景 */
.main-image {
    width: 100%;
    height: 200px;
    background-image: url('./2.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 热门单模块 */
.trending,
.fun,
.entertainment,
.tech {
    margin-top: 20px;
}

.trending h3,
.fun h3,
.entertainment h3,
.tech h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
    color: #555;
}

/* 图片网格布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.image-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    text-align: center;
    align-content: center;
    font-size: 20px;
}

.description {
    padding: 10px;
    font-size: 0.9rem;
    text-align: center;
    color: #666;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    padding: 5px;
}

.nav-item.active {
    color: #007bff;
    font-weight: bold;
}

.nav-item .icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.img-title{
    /* font-size: 2rem; */
}

/* 响应式调整 */
@media (max-width: 480px) {
    .content {
        padding: 15px;
    }

    h2 {
        font-size: 1.6rem;
    }

    .image-grid {
        gap: 10px;
    }
}
/* 转盘区样式 */
.wheel-section {
    width: 90%;
    max-width: 300px;
    margin: 20px auto;
    text-align: center;
}

.title {
    font-size: 16px;
    margin-bottom: 10px;
}

.wheel-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    position: relative;
    background-color: white;
    border: 2px solid #ccc;
    margin: 20px auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #ff6b6b 0deg 60deg,
        #4ecdc4 60deg 120deg,
        #ffe066 120deg 180deg,
        #9d65c9 180deg 240deg,
        #55acee 240deg 300deg,
        #ff9a8b 300deg 360deg
    );
    position: relative;
    transition: transform 5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    overflow: hidden;
}

.wheel span {
    position: absolute;
    top: 40%;
    left: 0%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    text-align: center;
    padding-top: 10px;
}

.wheel span:nth-child(1) { transform: rotate(0deg) translate(0, -100px) rotate(30deg); }
.wheel span:nth-child(2) { transform: rotate(0deg) translate(0, -100px) rotate(90deg); }
.wheel span:nth-child(3) { transform: rotate(0deg) translate(0, -100px) rotate(150deg); }
.wheel span:nth-child(4) { transform: rotate(0deg) translate(0, -100px) rotate(-150deg); }
.wheel span:nth-child(5) { transform: rotate(0deg) translate(0, -100px) rotate(-90deg); }
.wheel span:nth-child(6) { transform: rotate(0deg) translate(0, -100px) rotate(-30deg); }

.pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-10px);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid red;
    z-index: 10;
}

.result-area {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
}

.rotate-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.rotate-btn:hover {
    background: #0056b3;
}

.code-input-area {
    width: 100%;
    margin: 20px auto;
    text-align: center;
}

#code-input {
    padding: 10px;
    font-size: 16px;
    width: 170px;
    border: 1px solid #ccc;
    border-radius: 4px;

}

#validate-btn {
    margin-left: 10px;
    padding: 10px 20px;
    font-size: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#validate-btn:hover {
    background: #0056b3;
}