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

:root {
    --color: #ffffff;
    --secondary-color: #ffef87;
    --color-hover: #ff4011;
    --bg: #118df3;
    --bg-hover: #0d67b1;
    --bg-danger: #ff4011;
    --bg-danger-hover: #ff5a31;
    --bg-success: #23c28f;
    --bg-success-hover: #45d4a7;
}

html,
body {
    scroll-behavior: smooth;
    font-size: 14px;
    font-family: 'Helvetica', 'Arial', 'LiHei Pro', '黑體-繁', '微軟正黑體', sans-serif;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
    background-color: #fff;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1320px;
    padding: 0 15px;
    height: 100%;
    position: relative;
    margin: auto;
}

.slogan {
    font-size: 40px;
    text-align: center;
    letter-spacing: 2px;
    height: 60px;
    position: relative;
    margin: 20px auto;
}

.slogan::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc(50% - 150px);
    height: 4px;
    border-left: 100px solid var(--secondary-color);
    border-right: 200px solid var(--bg);
}

.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.row > div {
    width: calc(25% - 12px);
    margin-right: 16px;
    margin-bottom: 20px;
}

.row > div:last-child {
    margin-right: 0;
}

.form-block {
    margin: 20px auto;
}

.form-block .form-control {
    position: relative;
    margin: 20px auto;
}

.form-block .form-control label {
    position: absolute;
    top: 0;
    left: 0;
    letter-spacing: 2px;
}

.form-block .form-control input {
    width: 100%;
    height: 50px;
    padding: 0;
    padding-top: 14px;
    font-size: 18px;
    border: 0;
    border-bottom: 1px solid #000;
    box-shadow: unset;
    outline: 0;
    border-radius: 0;
}

.form-block .form-control input::placeholder {
    font-size: 14px;
}

.form-block .form-control input:focus-visible {
    border: 0;
    border-bottom: 1px solid #000;
}

.form-block .form-control input:focus ~ label {
    font-size: 13px;
    color: var(--bg);
}

.form-block .form-button {
    text-align: right;
}

.button {
    display: inline;
    padding: 8px 20px;
    border: 0;
    outline: 0;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 600;
}

.button[disabled] {
    cursor: not-allowed;
}

.button.primary {
    background: var(--bg);
    color: var(--color);
}

.button.primary:hover {
    background: var(--bg-hover);
}

.button.danger {
    background: var(--bg-danger);
    color: var(--color);
}

.button.danger:hover {
    background: var(--bg-danger-hover);
}

.button.success {
    background: var(--bg-success);
    color: var(--color);
}

.button.success:hover {
    background: var(--bg-success-hover);
}

.button.link {
    border-bottom: 1px solid #747474;
    padding-left: 10px;
    padding-right: 10px;
}

.status-icon {
    width: 12px;
    height: 12px;
    border: 1px solid #dedede;
    border-radius: 12px;
    position: relative;
    display: none;
}

.status-icon.show {
    display: inline-flex;
}

.status-icon::after {
    content: '';
    position: absolute;
    border-radius: 12px;
    width: 12px;
    height: 12px;
    background: #dedede;
    top: 50%;
    left: 50%;
    margin-top: -6px;
    margin-left: -6px;
    transform: scale(0);
}

.status-icon.show::after {
    animation-name: status-icon-show;
    animation-duration: 1s;
    transform: scale(1);
}

.status-icon.success {
    border: 1px solid var(--bg-success);
}

.status-icon.success::after {
    background: var(--bg-success);
}

.status-icon.danger {
    border: 1px solid var(--bg-danger);
}

.status-icon.danger::after {
    background: var(--bg-danger);
}

.status-icon.primary {
    border: 1px solid var(--bg);
}

.status-icon.primary::after {
    background: var(--bg);
}

.quota {
    padding-left: 20px;
    border-left: 6px solid #8d8d8d;
    line-height: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-style: italic;
    color: #8d8d8d;
    letter-spacing: 1px;
}

.quota.success {
    border-left-color: var(--bg-success);
    color: var(--bg-success);
}

.quota.danger {
    border-left-color: var(--bg-danger);
    color: var(--bg-danger);
}

.quota.primary {
    border-left-color: var(--bg);
    color: var(--bg);
}

@keyframes status-icon-show {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@media screen and (max-width: 767px) {
    body.lock {
        overflow: hidden;
    }

    .row > div {
        width: calc(50% - 8px);
        margin-right: 16px;
    }

    .row > div:nth-child(2n) {
        margin-right: 0;
    }
}
