.te-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.te-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.te-section {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.te-section h3 {
    font-size: 0.9em;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.te-section h3 i {
    color: #3498db;
}

.te-upload {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
    margin-bottom: 12px;
}

.te-upload:hover,
.te-upload.dragover {
    border-color: #3498db;
    background: #f0f7ff;
}

.te-upload i {
    font-size: 1.6em;
    color: #3498db;
    margin-bottom: 6px;
}

.te-upload p {
    color: #666;
    font-size: 0.8em;
    margin: 0 0 4px;
}

.te-hint {
    color: #999;
    font-size: 0.72em;
}

.te-textarea-wrap {
    width: 100%;
}

.te-textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85em;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", monospace, sans-serif;
}

.te-textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.te-form-row {
    margin-bottom: 12px;
}

.te-form-row label {
    display: block;
    font-size: 0.82em;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.te-select {
    width: 100%;
    padding: 7px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85em;
    background: #fff;
    outline: none;
}

.te-select:focus {
    border-color: #3498db;
}

.te-detected {
    display: inline-block;
    font-size: 0.8em;
    color: #27ae60;
    background: #e8f8f0;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.te-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.te-btn {
    flex: 1;
    min-width: 70px;
    padding: 9px;
    border: none;
    border-radius: 8px;
    font-size: 0.82em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.te-btn-primary {
    background: #3498db;
    color: #fff;
}

.te-btn-primary:hover:not(:disabled) {
    background: #2980b9;
}

.te-btn-success {
    background: #27ae60;
    color: #fff;
}

.te-btn-success:hover:not(:disabled) {
    background: #219a52;
}

.te-btn-outline {
    background: #fff;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.te-btn-outline:hover:not(:disabled) {
    background: #fef2f2;
}

.te-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.te-usage-info {
    background: #e8f4fd;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.8em;
    color: #2c3e50;
    text-align: center;
}

.te-usage-info i {
    color: #3498db;
    margin-right: 4px;
}

.te-vip-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(0,0,0,0.75);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    backdrop-filter: blur(2px);
}

.te-vip-mask-inner {
    text-align: center;
    color: #fff;
    padding: 30px;
}

.te-vip-mask-icon {
    font-size: 3em;
    margin-bottom: 12px;
}

.te-vip-mask-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 8px;
}

.te-vip-mask-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.te-vip-btn {
    background: #3498db;
    color: #fff;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.te-vip-btn:hover {
    background: #2980b9;
}

.te-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    min-width: 0;
}

.te-main.has-vip-mask {
    min-height: 500px;
}

.te-result-area {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 300px;
}

.te-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecf0f1;
}

.te-result-title {
    font-size: 0.9em;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.te-result-title i {
    color: #3498db;
}

.te-result-meta {
    font-size: 0.75em;
    color: #718096;
}

.te-btn-sm {
    padding: 5px 10px;
    font-size: 0.75em;
    min-width: auto;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.te-btn-sm:hover {
    background: #e2e8f0;
}

.te-result-textarea {
    width: 100%;
    flex: 1;
    min-height: 240px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85em;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", monospace, sans-serif;
    background: #f8f9fa;
}

.te-result-textarea:focus {
    border-color: #3498db;
    background: #fff;
}

.te-tips {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.te-tips h4 {
    font-size: 0.95em;
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.te-tips h4 i {
    color: #f39c12;
}

.te-tip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.te-tip-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    border-left: 3px solid #3498db;
}

.te-tip-item strong {
    display: block;
    font-size: 0.85em;
    color: #2c3e50;
    margin-bottom: 3px;
}

.te-tip-item p {
    font-size: 0.75em;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .te-container {
        grid-template-columns: 1fr;
    }
    .te-tip-grid {
        grid-template-columns: 1fr;
    }
    .te-result-area {
        min-height: 200px;
    }
}
