* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

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

header {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.description {
    font-size: 1.1rem;
    opacity: 0.9;
}

.qr-section {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 15px auto;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
}

.vote-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.vote-options {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.vote-results {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.option-list {
    list-style: none;
    margin-bottom: 20px;
}

.option-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.option-item.selected {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.custom-option {
    display: flex;
    margin-top: 15px;
}

input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
}

button {
    padding: 12px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover {
    background: #218838;
}

.result-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-bar {
    height: 10px;
    background: #4dc0b5;
    border-radius: 5px;
    margin-top: 5px;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.admin-panel {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.admin-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.admin-controls input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.admin-controls button {
    border-radius: 6px;
}

.delete-btn {
    background: #dc3545;
    padding: 5px 10px;
    font-size: 0.9rem;
}

.delete-btn:hover {
    background: #c82333;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #6c757d;
}

@media (max-width: 768px) {
    .vote-container {
        flex-direction: column;
    }
}