.header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.description {
    color: #7f8c8d;
    margin: 0 auto;
}

.input-section {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

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

.input-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
}

.input-header h3 {
    color: #fff;
    margin: 0;
}

.input-actions {
    display: flex;
    gap: 10px;
}

textarea {
    /* width: 100%; */
    height: 300px;
    padding: 10px;
    border: none;
    resize: vertical;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    /* background: #f8f9fa; */
    border: 1px solid #eee;
    /* padding: 10px 10px 10px 10px; */
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.secondary-btn {
    background: linear-gradient(to right, #2ecc71, #27ae60);
    color: white;
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.action-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.result-section {
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #009688;
    color: white;
}

.result-header h3 {
    color: #fff;
    margin: 0;
}

.result-section textarea {
    width: -webkit-fill-available;
    width: -moz-available;
    /*兼容火狐*/
    /*border: 1px solid #000;*/
}

.result-actions {
    display: flex;
    gap: 10px;
}

.duplicate-list {
    margin: 20px 0;
    padding: 20px;
    background: #fff5f5;
    border-radius: 10px;
    border-left: 5px solid #e74c3c;
    display: none;
}

.duplicate-list h4 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.duplicate-item {
    background-color: white;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-family: monospace;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 3px solid #e74c3c;
}

.duplicate-count {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
}

.file-input {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.file-label:hover {
    background: rgba(255, 255, 255, 0.3);
}

.stats {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #7f8c8d;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: normal;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.copy {
    background: #4CAF50;
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #2ecc71;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(100px);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.info-txt span {
    background: #4CAF50;
    color: #fff;
    padding: 3px 10px 3px 10px;
    margin: 0 3px 0 3px;
    border-radius: 10px;
}

.info-txt span:hover {
    background: #000;
}
.info-txt {
    line-height: 30px;
}