<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/* static/css/translate.css */


/*絲取���鎵檎�綣肴���*/
.navbar__menu .translate-menu{
    color: var(--accent-color);
}

:root {
    /* 絨阪� */
    --input-min-height: 180px;
    --input-max-width: 480px;
    --button-container-gap: 1.5rem;

    /* 蘂��� */
    /*--primary-color: #4a7c59;*/
    --translate-color: #4a7c59;
    --label-color: #8b5a2b;
    --danger-color: #c3423f;
    --border-color: #ddd;

    /* ���� */
    --transition-duration: 0.4s;

    /* �医������後�喝��� */
    /*--bg-opacity: 0.5;         !* ������秋���嫜 *!*/
    /*--bg-blur: 8px;             !* ����─膤�綺� *!*/
    --bg-overlay: rgba(255, 255, 255, 0.3); /* ��絎劫�咲��秋蘂��� */
}
/* 罩ｅ��浸莚���腓� */
.text-input.loading::placeholder {
    color: rgba(87, 55, 55, 0.8);
    animation: placeholderPulse 1.6s linear infinite;
}

@keyframes placeholderPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}
/* ��translate.css筝㊥兄�� */
/* ��腓榊鎧膸��桁� */


@keyframes toastFade {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}
/* 筝私����� */
body {
    background: url('/static/webp/translate-bg.webp') no-repeat center/cover fixed;
    /*background-attachment: fixed;*/
    min-height: 100vh;
    /*position: relative;*/
}

/* 筝糸��� */
.translation-container {
    max-width: 1200px;
    margin: 2rem auto;
    /*padding: 0 1rem;*/
    background: var(--bg-overlay);
    border-radius: 12px;
    padding: 2rem;
    /*margin: 2rem auto;*/
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* 莨��ュ�阪��絽�絮� */
.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
    transition: all var(--transition-duration) ease;
}

/* 罅��∝�藥�莅ゅ�絮� */
.text-box.modern-box { order: 1; }
.button-container      { order: 2; }
.text-box.ancient-box { order: 3; }

/* 罅��∝���莉��絮� */
.input-container.reversed .text-box.modern-box { order: 3; }
.input-container.reversed .text-box.ancient-box { order: 1; }



/* 莨��ユ��桁� */
.text-box {
    flex: 1;
    min-width: 280px;
    max-width: var(--input-max-width);
    max-height: 800px;
    position: relative;
}

.modern-text-label {
    position: absolute;
    top: -1.8rem;
    left: 0;
    color: var(--label-color);
    font-size: 1em;
}
.ancient-text-label {
    font-family: 'Ma Shan Zheng', serif;
    position: absolute;
    top: -1.8rem;
    left: 0;
    color: var(--label-color);
    font-size: 1.1em;
}

.text-input {
    width: 100%;
    min-height: var(--input-min-height);
    padding: 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    resize: none;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    max-height: 400px; /* �医���紊ч�綺����� */
    overflow-y: auto; /* 羞糸�����贋����� */
}

.text-input:focus {
    border-color: var(--translate-color);
    outline: none;
    box-shadow: 0 0 8px rgba(74, 124, 89, 0.2);
}

/* ��translate.css筝㊥兄�� */
/* ��莉遵���紙�桁� */
@keyframes inkRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.text-box.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  background: url('/static/webp/load-bg.webp') no-repeat center/contain;
  animation: inkRotate 1.2s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  pointer-events: none;
}

.text-box.active-loading::after {
  opacity: 0.8;
}



/* ������� */
.button-container {
    display: flex;
    flex-direction: column;
    gap: var(--button-container-gap);
    min-width: 200px;
}




.translate-btn {
    /*background-color: var(--translate-color);*/
    color: white;
}

.swap-btn {
    /*background-color: var(--accent-color);*/
    color: white;
}

.clear-btn {
    /*background-color: var(--danger-color);*/
    color: white;
}


.btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ���画�綵� */
.history-block {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 20px;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    /*opacity: 0.5;*/
    /*background: var(--bg-overlay);*/
}

.history-list {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
    /*opacity: 0.5;*/
    /*background: var(--bg-overlay);*/
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 0.5rem 0;
    background: #f8f8f8;
    border-radius: 6px;
    /*opacity: 0.5;*/
    background: var(--bg-overlay);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.7);
}

.delete-btn {
    color: var(--danger-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.delete-btn:hover {
    transform: scale(1.2);
}
/* 腱糸���絽�絮� */
@media (max-width: 768px) {
    .input-container {
        flex-direction: column;
    }
    .button-container {
        flex-direction: row !important;
        width: 100% !important;
        height: auto !important;
        margin: 1rem 0;
    }

     /*����虻絲梧���*/
    .btn {
        flex: 1;
        min-width: 60px;
        padding: 0.8rem;
        font-size: 1rem;
    }

    .translate-btn {
        flex: 2;
        order: 2; /* 膺肢������筝� */
    }

    .swap-btn {
        flex: 2;
        order: 1; /* 篋ゆ�∽�����綏� */
    }

    .clear-btn {
        flex: 2;
        order: 3; /* 羝�腥堺������� */
    }

    /* 莨��ュ����絮�莪��� */
    .input-container {
        flex-direction: column;
        gap: 1rem;
    }

    /* 莨��ユ�絎遵墾莪��� */
    .text-box {
        width: 100%;
        max-width: 100%;
    }

    /* ��膈鞘�臀�小莪� */
    .modern-text-label {
        top: -1.2rem;
        font-size: 0.8em;
    }
    .ancient-text-label {
        top: -1.2rem;
        font-size: 0.8em;
    }
    .text-input {
        max-height: 200px; /* 腱糸���莨�絨��駜�綺����� */
        -webkit-overflow-scrolling: touch; /* �������ф��� */
    }
    /* ���箙�羯����≧�桁� */
    .text-input::-webkit-scrollbar {
        width: 6px;
    }
    .text-input::-webkit-scrollbar-thumb {
        background-color: rgba(74, 124, 89, 0.5);
        border-radius: 3px;
    }
}</pre></body></html>