:root {
    --app-bg: #f0f2f5;
    --header-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --border-color: #e8e8e8;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --primary: #4361ee;
    --primary-light: #eef1ff;
}

/* 拖放状态样式 */
body.drag-over {
    background: rgba(67, 97, 238, 0.1);
}

body.drag-over #app-root {
    border: 2px dashed #4361ee;
    border-radius: 8px;
}

/* 拖放提示弹窗 */
.drop-hint-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drop-hint-overlay.show {
    opacity: 1;
    visibility: visible;
}

.drop-hint-container {
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: dropHintPulse 1s ease-in-out infinite;
}

.drop-hint-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
}

.drop-hint-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.drop-hint-desc {
    font-size: 14px;
    color: #666;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--app-bg);
    color: var(--text-primary);
    min-height: 100vh;
}

#app {
    min-height: 100vh;
}

#app-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.el-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    height: auto !important;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 24px;
}

.header-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-right: 32px;
    white-space: nowrap;
}

.header-menu {
    border-bottom: none !important;
    flex: 1;
}

.header-menu .el-menu-item {
    font-size: 14px;
    height: 56px;
    line-height: 56px;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.header-menu .el-menu-item:hover {
    color: var(--primary);
    background: transparent;
}

.header-menu .el-menu-item.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.app-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 16px 24px 8px;
}

.page-converter {
    animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.converter-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
}

.converter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.converter-panel {
    min-width: 0;
}

.panel-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    background: #fafafa;
}

.label-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.panel-label-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-label-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-label .copy-btn {
    margin-left: 0;
}

.converter-input textarea {
    font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    padding: 16px;
    border: none !important;
    background: #fff;
    resize: vertical;
    max-height: 480px;
    min-height: 480px;
}

.converter-input textarea:focus {
    box-shadow: none !important;
}

.converter-input textarea::placeholder {
    color: #bbb;
}

.converter-input .el-textarea__inner {
    box-shadow: none !important;
    border: none !important;
}

.converter-input .el-textarea.is-exceed .el-textarea__inner {
    box-shadow: none !important;
}

.converter-actions {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 16px 0;
}

.converter-actions .el-button {
    background: var(--primary);
    border-color: var(--primary);
}

.converter-actions .el-button:hover {
    opacity: 0.9;
}

.preview-wrapper {
    max-height: 480px;
    min-height: 480px;
    padding: 16px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
    background: #fff;
    border: none;
}

.preview-section {
    margin-top: 24px;
    grid-template-columns: 1fr !important;
}

.full-width {
    width: 100%;
}

.preview-placeholder {
    color: #bbb;
    font-size: 14px;
    text-align: center;
    padding: 80px 0;
}

.app-footer-wrap {
    height: auto !important;
    padding: 0;
}

.app-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 32px;
}

.app-footer .el-divider {
    margin: 0 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-sub {
    font-size: 12px;
    color: #999;
}

@media (max-width: 768px) {
    .converter-grid {
        grid-template-columns: 1fr;
    }

    .converter-actions {
        padding: 12px 0;
    }

    .converter-actions .el-icon-arrow-right {
        transform: rotate(90deg);
    }

    .header-inner {
        padding: 0 16px;
    }

    .app-main {
        padding: 16px;
    }
}
