:root {
    --ev-c-white: #ffffff;
    --ev-c-white-soft: #f8f8f8;
    --ev-c-white-mute: #f2f2f2;

    --ev-c-black: #1b1b1f;
    --ev-c-black-soft: #222222;
    --ev-c-black-mute: #282828;

    --ev-c-gray-1: #515c67;
    --ev-c-gray-2: #414853;
    --ev-c-gray-3: #32363f;

    --ev-c-text-1: rgba(255, 255, 245, 0.86);
    --ev-c-text-2: rgba(235, 235, 245, 0.6);
    --ev-c-text-3: rgba(235, 235, 245, 0.38);

    --ev-button-alt-border: transparent;
    --ev-button-alt-text: var(--ev-c-text-1);
    --ev-button-alt-bg: var(--ev-c-gray-3);
    --ev-button-alt-hover-border: transparent;
    --ev-button-alt-hover-text: var(--ev-c-text-1);
    --ev-button-alt-hover-bg: var(--ev-c-gray-2);
}

:root {
    --color-background: var(--ev-c-black);
    --color-background-soft: var(--ev-c-black-soft);
    --color-background-mute: var(--ev-c-black-mute);

    --color-text: var(--ev-c-text-1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    font-weight: normal;
}

ul {
    list-style: none;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    color: var(--color-text);
    background: var(--color-background);
    line-height: 1.6;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        'Fira Sans',
        'Droid Sans',
        'Helvetica Neue',
        sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background-image: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201422%20800'%20opacity='0.3'%3e%3cdefs%3e%3clinearGradient%20x1='50%25'%20y1='0%25'%20x2='50%25'%20y2='100%25'%20id='oooscillate-grad'%3e%3cstop%20stop-color='hsl(206,%2075%25,%2049%25)'%20stop-opacity='1'%20offset='0%25'%3e%3c/stop%3e%3cstop%20stop-color='hsl(331,%2090%25,%2056%25)'%20stop-opacity='1'%20offset='100%25'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20stroke-width='1'%20stroke='url(%23oooscillate-grad)'%20fill='none'%20stroke-linecap='round'%3e%3cpath%20d='M%200%20448%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%20448'%20opacity='0.05'%3e%3c/path%3e%3cpath%20d='M%200%20420%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%20420'%20opacity='0.11'%3e%3c/path%3e%3cpath%20d='M%200%20392%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%20392'%20opacity='0.18'%3e%3c/path%3e%3cpath%20d='M%200%20364%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%20364'%20opacity='0.24'%3e%3c/path%3e%3cpath%20d='M%200%20336%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%20336'%20opacity='0.30'%3e%3c/path%3e%3cpath%20d='M%200%20308%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%20308'%20opacity='0.37'%3e%3c/path%3e%3cpath%20d='M%200%20280%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%20280'%20opacity='0.43'%3e%3c/path%3e%3cpath%20d='M%200%20252%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%20252'%20opacity='0.49'%3e%3c/path%3e%3cpath%20d='M%200%20224%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%20224'%20opacity='0.56'%3e%3c/path%3e%3cpath%20d='M%200%20196%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%20196'%20opacity='0.62'%3e%3c/path%3e%3cpath%20d='M%200%20168%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%20168'%20opacity='0.68'%3e%3c/path%3e%3cpath%20d='M%200%20140%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%20140'%20opacity='0.75'%3e%3c/path%3e%3cpath%20d='M%200%20112%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%20112'%20opacity='0.81'%3e%3c/path%3e%3cpath%20d='M%200%2084%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%2084'%20opacity='0.87'%3e%3c/path%3e%3cpath%20d='M%200%2056%20Q%20355.5%20-100%20711%20400%20Q%201066.5%20900%201422%2056'%20opacity='0.94'%3e%3c/path%3e%3c/g%3e%3c/svg%3e");
    background-size: cover;
    user-select: none;
}

code {
    font-weight: 600;
    padding: 3px 5px;
    border-radius: 2px;
    background-color: var(--color-background-mute);
    font-family:
        ui-monospace,
        SFMono-Regular,
        SF Mono,
        Menlo,
        Consolas,
        Liberation Mono,
        monospace;
    font-size: 85%;
}

#app {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 40px;
    width: 414px;
    max-width: 100%;
    margin: 0 auto;
}

.hero {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    overflow: auto;
    margin: 0 auto;
}

.logo {
    width: 35%;
    text-align: right;
    margin-bottom: 20px;
    -webkit-user-drag: none;
    will-change: filter;
    transition: filter 300ms;
}

.logo img {
    width: 80px;
    margin: 0px auto;
    display: block;
}

.logo:hover {
    filter: drop-shadow(0 0 1.2em #6988e6aa);
}

.creator {
    font-size: 14px;
    line-height: 16px;
    color: var(--ev-c-text-2);
    font-weight: 600;
    margin-bottom: 10px;
}

.text {
    width: 65%;
    font-size: 40px;
    color: var(--ev-c-text-1);
    font-weight: 700;
    line-height: 100px;
    text-align: center;
    margin: 0 10px;
}

.tip {
    font-size: 16px;
    line-height: 24px;
    color: var(--ev-c-text-2);
    font-weight: 600;
}

.vue {
    background: -webkit-linear-gradient(315deg, #42d392 25%, #647eff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.ts {
    background: -webkit-linear-gradient(315deg, #3178c6 45%, #f0dc4e);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.blackgold {
    background: -webkit-linear-gradient(315deg, #ffff00 20%, #ee82ee);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.actions {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin: 0px auto;
    flex-wrap: wrap;
    overflow: auto;
}

.action {
    flex-shrink: 0;
    padding: 6px;
}

.action button {
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border: 1px solid transparent;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 20px;
    padding: 0 20px;
    line-height: 38px;
    font-size: 14px;
    border-color: var(--ev-button-alt-border);
    color: var(--ev-button-alt-text);
    background-color: var(--ev-button-alt-bg);
}

.action-selected {
    flex-shrink: 0;
    padding: 6px;
}

.action-selected button {
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border: 1px solid transparent;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 20px;
    padding: 0 20px;
    line-height: 38px;
    font-size: 14px;
    border-color: var(--ev-button-alt-border);
    color: var(--ev-button-alt-text);
    background-color: var(--ev-button-alt-bg);
    box-shadow:
        0 0 0 3px rgba(255, 200, 40, 0.5),
        0 0 10px 4px rgba(255, 255, 0, 0.5);
    transition: box-shadow 0.2s;
}

.action button:hover {
    border-color: var(--ev-button-alt-hover-border);
    color: var(--ev-button-alt-hover-text);
    background-color: var(--ev-button-alt-hover-bg);
}

.main-row {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    width: 98%;
}

/* 按 414×736 设计稿换算：45% 宽、38vh 高、图 40vw×20vh */
.chart-panel {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 45%;
    position: relative;
    overflow: visible;
}

.chart-img {
    width: 166px !important;
    height: 148px !important;
    display: block;
    margin: 0 auto;
    object-fit: fill;
}

.result-panel {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: 15%;
    width: 50%;
}

.versions {
    position: absolute;
    bottom: 30px;
    margin: 0 auto;
    padding: 15px 0;
    font-family: 'Menlo', 'Lucida Console', monospace;
    display: inline-flex;
    overflow: hidden;
    align-items: center;
    border-radius: 22px;
    background-color: #202127;
    backdrop-filter: blur(24px);
}

.versions li {
    display: block;
    float: left;
    border-right: 1px solid var(--ev-c-gray-1);
    padding: 0 20px;
    font-size: 14px;
    line-height: 14px;
    opacity: 0.8;
}

.versions li:last-child {
    border: none;
}

.custom-input + .custom-input {
    margin: 0;
}

.custom-input {
    color: #ffffff;
    width: 30%;
    background-color: #374151;
    border: 1px solid #4b5563;
    font-size: 0.8rem;
    border-radius: 0.375rem;
    padding: 0.35rem 0.4rem;
    line-height: 1.2;
    z-index: 2;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    box-sizing: border-box;
}

.custom-input:disabled {
    background: -webkit-linear-gradient(315deg, #ffff00 20%, #ee82ee);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.custom-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.5);
}

.custom-input::placeholder {
    color: #9ca3af;
}

.custom-button {
    width: 80%;
    max-width: 332px;
    background-color: rgb(255, 190, 0);
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    margin-bottom: 0.5rem;
    transition:
        background-color 0.3s,
        box-shadow 0.2s;
    height: 60px;
    border: none;
    cursor: pointer;
}

.custom-button:hover {
    background-color: #eab308;
}

.custom-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px #fde68a;
    transition: box-shadow 0.2s;
}

.custom-neirong {
    color: #ffffff;
    width: 90%;
    height: auto;
    overflow: auto;
    margin: 5px auto;
    background-color: #374151;
    border: 1px solid #4b5563;
    font-size: 14px;
    line-height: 40px;
    min-height: 40px;
    border-radius: 10px;
    padding: 5px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

@media screen and (max-width: 350px) {
    .logo {
        width: 30%;
    }
    .logo img {
        width: 60px;
    }
    .text {
        width: 68%;
        line-height: 60px;
        font-size: 35px;
    }
    .action {
        padding: 3px;
    }
    .action button {
        padding: 0px 10px;
    }
    .action-selected {
        padding: 3px;
    }
    .action-selected button {
        padding: 0 10px;
    }
}
