.roll-call-container {
    min-height: 100vh;
    padding: 20px;
    background: #f8fafc;
    color: #1e293b;
}

.display-container {
    background-color: #e0e7ff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #ddd6fe;
    height: 340px;
    overflow: hidden;
    box-sizing: border-box;
}

:fullscreen .display-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: none;
    background: linear-gradient(135deg, #8b5cf6, #6b21a8);
}

:fullscreen .main-display {
    height: calc(100vh - 80px);
    width: 100vw;
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
}

:fullscreen .name-display {
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

:fullscreen .name-placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.fullscreen-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.fullscreen-font-control {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.fullscreen-font-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fullscreen-range {
    width: 300px;
}

.fullscreen-exit-btn {
    padding: 8px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.main-display {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 0;
}

.name-display {
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding: 40px;
    line-height: 1.2;
    max-width: 100%;
    word-break: break-all;
}

.name-display.name-pop {
    animation: name-pop 0.7s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes name-pop {
    0% { transform: scale(0.55); opacity: 0.2; }
    55% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.num-input {
    width: 64px;
    padding: 6px 8px;
    border: 2px solid #e9d5ff;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.num-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.name-placeholder {
    font-size: 24px;
    color: #94a3b8;
}

.control-panel {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.stats-panel {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 20px 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex: 1;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #1e293b;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.settings-area {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.settings-left {
    flex: none;
    min-width: 500px;
}

.settings-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.settings-row:last-child {
    margin-bottom: 0;
}

/* 复选框样式统一由 common.css 提供（.setting-label input[type="checkbox"] 覆盖样式已移除） */
.setting-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-bottom: 0;
}

.file-input-small {
    padding: 6px 12px;
    border: 2px solid #e9d5ff;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    max-width: 150px;
    font-size: 12px;
    cursor: pointer;
}

.file-input-small:hover {
    border-color: #8b5cf6;
}

.file-input-small::file-selector-button {
    background: linear-gradient(135deg, #8b5cf6, #6b21a8);
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    margin-right: 8px;
}

.color-input {
    width: 50px;
    height: 32px;
    border: 2px solid #e9d5ff;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}

.color-input:hover {
    border-color: #8b5cf6;
}

.range-input {
    width: 120px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    outline: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #8b5cf6, #6b21a8);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.4);
}

.range-input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #8b5cf6, #6b21a8);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.4);
}

.range-value {
    font-size: 13px;
    min-width: 50px;
}

.group-select {
    padding: 6px 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    background: white;
    color: #1e293b;
    font-size: 13px;
    cursor: pointer;
}

.group-select-inline {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.group-select-inline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.group-select-inline:focus {
    background: white;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.import-btn {
    cursor: pointer;
}

.import-file-input {
    display: none;
}

.panel-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bottom-panels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panels-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px;
    color: #333;
}

.panel-half {
    flex: 1;
    min-width: 350px;
}

.panel-full {
    width: 100%;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9d5ff;
    font-size: 15px;
    font-weight: 600;
    color: #6b21a8;
}

.panel-header-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.template-link {
    color: #8b5cf6;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.template-link:hover {
    background-color: rgba(139, 92, 246, 0.1);
}

.panel-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.name-textarea {
    width: 100%;
    min-height: 150px;
    padding: 12px;
    border: 2px solid #e9d5ff;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

.name-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.name-count {
    font-size: 13px;
    color: #6b7280;
}

.name-list-container {
    max-height: 200px;
    overflow-y: auto;
}

.name-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.name-table th,
.name-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #f3e8ff;
}

.name-table th {
    background: #f9f5ff;
    font-weight: 600;
    color: #6b21a8;
}

.name-table tbody tr:hover {
    background: #f9f5ff;
}

.name-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.name-tag {
    padding: 6px 12px;
    background: #f3e8ff;
    border-radius: 20px;
    font-size: 13px;
    color: #6b21a8;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 14px;
}

.btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-tiny {
    padding: 4px 8px;
    font-size: 12px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #8b5cf6, #6b21a8);
    color: white;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9d5ff;
    border-radius: 8px;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.name-preview {
    padding: 10px 12px;
    background: #f9f5ff;
    border-radius: 8px;
    font-size: 13px;
    color: #6b21a8;
    max-height: 100px;
    overflow-y: auto;
    word-break: break-all;
}

.name-total {
    color: #8b5cf6;
    font-weight: 500;
}

.name-total-inline {
    color: #8b5cf6;
    font-weight: 500;
    font-size: 13px;
    margin-left: 5px;
}

/* 以下通用布局与按钮样式（.section-row/.settings-card/.card-header/.btn-group/
   .btn-primary/.btn-secondary 等）统一由 common.css 提供，本文件仅保留工具专属样式 */
