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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #000;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1, .header h2, .header h3 {
    margin-bottom: 10px;
}

.header h1 {
    color: #c0a060;
    font-size: 18px;
}

.header h2 {
    font-size: 24px;
    color: #c0a060;
}

.header h3 {
    font-size: 16px;
    color: #c0a060;
}

.header .big-text {
    font-size: 40px;
    font-weight: bold;
    color: #c0a060;
    margin: 10px 0;
}

.header p {
    margin-bottom: 5px;
    color: #c0a060;
}

.header .small {
    font-size: 12px;
    color: #c0a060;
}

.lottery-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
}

.lottery-wheel {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}
.line-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #06C755; /* Line的品牌颜色 */
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 10px auto;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 80%;
}

.line-button:hover {
    background-color: #05a648;
}

.line-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

/* 调整确定按钮的样式，使其与Line按钮区分 */
#close-result {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 15px;
    margin-top: 10px;
    cursor: pointer;
}

#close-result:hover {
    background-color: #e0e0e0;
}
.wheel-bg {
    width: 100%;
    height: 100%;
}

.pointer {
    position: absolute;
    /* 根据图片调整位置，这里将指针放在右下角 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
}
.prize-item {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    left: 0;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10%;
}

.prize-text {
    position: relative;
    transform-origin: center;
    text-align: center;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    width: 100%;
    padding: 5px;
    word-break: break-word;
}

.start-btn {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /*background: #ff6600;*/
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);*/
    /*border: 3px solid #ffcc00;*/
}

.start-btn span {
    line-height: 1.2;
}

.prize-list {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 10px;
    padding: 10px 0;
}

.prize-list h4 {
    color: #ff0000;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid #ff0000;
    font-size: 16px;
}

.prizes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 10px;
}

.prize-box {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prize-box img {
    width: 80%;
    height: auto;
    object-fit: contain;
    margin-bottom: 5px;
}

.prize-box .prize-level {
    font-size: 12px;
    color: #666;
    margin: 3px 0;
}

.prize-box .prize-name {
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin: 0;
}

/* 弹窗样式 */
.login-modal, .result-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.login-form, .result-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 350px;
    text-align: center;
}

.login-form h3, .result-content h3 {
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.code-group {
    display: flex;
}

.code-group input {
    flex: 1;
    margin-right: 10px;
}

.code-group button {
    padding: 0 10px;
    background: #ff6600;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

button {
    padding: 10px 20px;
    background: #ff6600;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

#close-modal, #close-result {
    background: #999;
    margin-left: 10px;
}

.prize-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
}

.prize-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#prize-name {
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .lottery-container {
        width: 280px;
        height: 280px;
    }
    
    .start-btn {
        width: 70px;
        height: 70px;
        font-size: 14px;
    }
    
    .prize-text {
        font-size: 12px;
    }
    
    .prizes {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    .prize-box {
        padding: 5px;
    }
    
    .prize-box .prize-level {
        font-size: 10px;
    }
    
    .prize-box .prize-name {
        font-size: 12px;
    }
}
