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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background: transparent;
}

/* 修改容器样式 */
.container {
    max-width: 800px;
    min-height: calc(100vh - 40px);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 骰子外框样式 */
.outer-frame {
    background: rgba(25, 25, 35, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.outer-frame:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 骰子容器样式 */
.dice-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dice-row {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.die {
    width: 70px;
    height: 70px;
    background-color: #333;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 8px;
    box-sizing: border-box;
    position: relative;
}

.dot {
    background-color: white;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    justify-self: center;
    align-self: center;
    margin: 0;
    position: relative;
}

.die-6 {
    gap: 6px;
    padding: 10px;
}

.die-6 .dot {
    width: 9px;
    height: 9px;
}

.die > * {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
}