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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 星级评分部分 - 增强版 */
.star-label {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #e0e3ff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.star-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.star-label::before {
    font-size: 1.4em;
    margin-right: 12px;
    background: linear-gradient(45deg, #ffd43b, #fcc419);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 地图面板 - 现代化设计 */
.map-panel {
    display: block;
    margin: 12px 0 0 40px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(118, 75, 162, 0.1);
    border-left: 4px solid #764ba2;
    backdrop-filter: blur(5px);
}

/* 地图选项 - 交互增强 */
.map-item-wrapper {
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.7);
}

.map-item-wrapper:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.map-item-checkbox {
    display: none;
}

.map-item-checkbox + label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    color: #3d4852;
    font-size: 0.95em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

.map-item-checkbox + label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
}

.map-item-checkbox:checked + label::before {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-color: transparent;
}

.map-item-checkbox:checked + label::after {
    content: "✓";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.map-item-checkbox:checked + label {
    color: #4c51bf;
    font-weight: 600;
}

/* 以下是您原有的其他样式 */
.input-section {
    margin-bottom: 30px;
}

.input-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.button-group {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.export-section {
    margin: 20px 0;
    text-align: center;
}

.btn-export {
    background: linear-gradient(45deg, #00b894, #00cec9);
    color: white;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

.btn-danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.result-section {
    margin: 30px 0;
    text-align: center;
}

.current-result {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border: 3px solid #fdcb6e;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #2d3436;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.history-section {
    margin-top: 30px;
}

.history-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.history-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    overflow-y: auto;
}

.history-item {
    background: white;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:nth-child(even) {
    border-left-color: #764ba2;
}

.history-number {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
}

.history-content {
    flex: 1;
    margin-left: 15px;
    font-weight: 500;
}

.map-section {
    margin-bottom: 30px;
    border: 2px solid #667eea;
    border-radius: 15px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
}

.map-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.star-filter {
    margin-bottom: 15px;
}

.nostalgic-option {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
}

.nostalgic-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #17a2b8;
    cursor: pointer;
}

.nostalgic-label input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #17a2b8;
}

.map-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn-map {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100px;
}

.btn-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-admin {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 100px;
    justify-content: center;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #e084fc 0%, #f34770 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.items-count {
    background: #e8f4fd;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 15px 0;
    color: #2c5aa0;
    font-weight: bold;
    text-align: center;
}

.empty-state {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 30px;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    .star-label {
        padding: 10px 12px;
    }
    
    .map-panel {
        margin-left: 28px;
        padding: 12px;
    }
    
    .map-item-wrapper {
        padding: 6px 10px;
    }
    
    .map-item-checkbox + label {
        padding-left: 28px;
        font-size: 0.9em;
    }
}

details summary {
    list-style: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    background: #f5f8ff;
    border: 1px solid #ddd;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

details[open] summary {
    background: #e8f0ff;
}

.star-summary .summary-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2d3436;
}

.star-summary input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

.star-summary label {
    cursor: pointer;
    flex-grow: 1;
}

.arrow-icon {
    font-size: 1rem;
    margin-left: auto;
    color: #999;
    transition: transform 0.2s ease;
}

details[open] .arrow-icon {
    transform: rotate(90deg);
}
