/* 保持原有样式不变 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: #f0f2f5;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#copy-container {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.8;
    border: 1px solid #e9ecef;
    min-height: 200px;
    position: relative;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 120px;
}

/* 保持原有按钮颜色 */
button:nth-child(1) {
    background: #6c757d;
    color: white;
}

button:nth-child(2) {
    background: #0d6efd;
    color: white;
}

button:nth-child(3) {
    background: #198754;
    color: white;
}

#show-all-button {
    background: #ffc107;
    color: black;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 新增动画相关样式 */
.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    background: #333;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* 控制按钮样式 */
.control-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* 导航按钮样式 */
.nav-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.nav-buttons button {
    background: #ff5722;
    color: white;
    width: 100%;
}

@media (max-width: 768px) {
    .nav-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 自定义提示框样式 */
.custom-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.custom-toast.show {
    opacity: 1;
}