.modal-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 8px;
}

/* 更新日志模态框样式 */
.changelog-modal {
    width: 600px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 80px);
}

/* 在Vue未挂载时隐藏所有模态框 */
[v-cloak] .modal-overlay {
    display: none !important;
}

/* 在Vue完全加载前显示加载状态 */
[v-cloak] .vue-loading {
    display: flex !important;
}

[v-cloak] .vue-content {
    display: none !important;
}

.vue-loading {
    display: none;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #333;
    font-size: 18px;
}

.changelog-content {
    max-height: 400px;
    overflow-y: auto;
    margin: 12px 0;
    padding-right: 8px;
}

.changelog-version {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e1e5e9;
}

.changelog-version:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.changelog-version h4 {
    color: #333;
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
}

.changelog-version ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.changelog-version li {
    margin-bottom: 6px;
    line-height: 1.5;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    width: 100%;
    height: 100%;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    border-radius: 15px;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 95vw;
    width: 100%;
    margin: 20px;
}

h2 {
    color: #333;
    text-align: center;
    margin-bottom: 16px;
    font-size: 2em;
}

.content {
    text-align: center;
    color: #666;
    font-size: 18px;
    line-height: 1.6;
}

.workspace {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.workspace .data-list {
    border-left: 1px solid #e1e5e9;
    margin-left: 16px;
    padding-left: 16px;
    align-self: stretch;
    width: 300px;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.card {
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.crystal-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    clip-path: polygon(100% 0%, 0% 0%, 100% 100%);
    opacity: 0.6;
    z-index: 1;
}

.crystal-Realgar {
    background: linear-gradient(135deg, #ff6b35, #ff8e53);
}

.crystal-Orpiment {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
}

.crystal-Carput {
    background: linear-gradient(135deg, #9f7aea, #b794f6);
}

.crystal-Malachite {
    background: linear-gradient(135deg, #22c55e, #4ade80);
}

.crystal-Azurite {
    background: linear-gradient(135deg, #4299e1, #63b3ed);
}

.crystal-Verdigris {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
}

.crystal-Pyrite {
    background: linear-gradient(135deg, #758a92, #778791);
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.card-desc {
    color: #555;
    margin-bottom: 6px;
}

.card-trigger {
    color: #667eea;
    font-weight: 500;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background-color 0.15s ease-in-out;
}

.icon-btn:hover {
    background: #f0f2f5;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: #667eea;
}

.card-time {
    color: #888;
    font-size: 14px;
}

.card-time-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: #fff;
    width: 360px;
    max-width: calc(100vw - 40px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 16px;
}

.modal-header {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.modal-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.15s ease-in-out;
}

.modal-input:focus {
    border-color: #667eea;
}

.time-adjust-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-adjust-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-adjust-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e1e5e9;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease-in-out;
}

.time-adjust-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.time-adjust-btn:active {
    transform: scale(0.95);
}

.modal-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
}

.btn-secondary {
    background: #f0f2f5;
    color: #333;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
}

/* 首次访问提示样式 */
.first-visit-highlight {
    position: relative;
    animation: pulse-highlight 2s ease-in-out infinite;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
}

@keyframes pulse-highlight {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.5);
    }
}

.first-visit-tooltip {
    position: absolute;
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 220px;
    text-align: center;
    font-size: 14px;
    color: #333;
    animation: fadeIn 0.5s ease-in-out;
}

.tooltip-content {
    margin-bottom: 12px;
    line-height: 1.5;
}

.tooltip-button {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s ease;
}

.tooltip-button:hover {
    opacity: 0.9;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
}

.data-output {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    min-height: 120px;
    resize: vertical;
}

/* 图片浮窗样式 */
.image-modal {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.image-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1e5e9;
    margin-bottom: 12px;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.15s ease-in-out;
}

.modal-close-btn:hover {
    background: #f0f2f5;
    color: #333;
}

.image-modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-image {
    max-width: 100%;
    max-height: calc(90vh - 100px);
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 8px;
}

.image-source {
    text-align: center;
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #e1e5e9;
}
