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

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* A4纸张样式 - 210mm x 297mm */
.paper.a4 {
    width: 210mm;
    height: 297mm;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

#text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    font-size: 18px;
    line-height: 1.5;
    z-index: 1;
    outline: none;
    color: #6495ED;
    white-space: pre-wrap;
    word-break: break-word;
}

#rain-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

#falling-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.falling-text {
    position: absolute;
    color: #ff0000;
    transform-origin: center;
}

/* 工具栏样式 */
.toolbar {
    width: 240px;
    position: sticky;
    top: 20px;
}

.toolbar-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.toolbar-card h3 {
    margin-bottom: 16px;
    color: #333;
    font-weight: 500;
}

.control-item {
    margin-bottom: 16px;
}

.control-item:last-child {
    margin-bottom: 0;
}

.control-item label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.control-item input[type="range"] {
    width: 100%;
    margin-bottom: 12px;
}

button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 8px;
}

button:hover {
    background-color: #45a049;
}

.text-char {
    display: inline;
} 