html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    font-size: 16px;
}

.petal {
    position: fixed;
    width: 15px;
    height: 15px;
    background-color: #ffa6c9;
    border-radius: 150% 0 150% 0;
    animation: falling linear forwards;
    z-index: 10;
    pointer-events: none;
}

@keyframes falling {
    0% {
        transform: translate(0, 0) rotate(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(50px, 800px) rotate(500deg) scale(0);
        opacity: 0;
    }
}

:root {
    --primary-color: #3E7BFA;
    --primary-light: #6E9DFA;
    --primary-dark: #2A5CD9;
    --secondary-color: #FF9500;
    --secondary-light: #FFB347;
    --secondary-dark: #E67E00;
    --background-color: #F8FAFF;
    --card-bg: #ffffff;
    --text-color: #2D3748;
    --text-light: #718096;
    --border-color: #E2E8F0;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.03);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', 'Noto Sans SC', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    line-height: 1.6;
    background-image: linear-gradient(135deg, rgba(62, 123, 250, 0.05) 0%, rgba(255, 149, 0, 0.05) 100%);
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 3rem;
    flex: 1;
}

body header {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease-out;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

h1 {
    color: var(--primary-color);
    font-size: 2.64rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 15rem;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.input-card {
    animation: fadeInUp 0.8s ease-out;
}

.result-card {
    animation: fadeInUp 1s ease-out;
}

.item-l,
.item-r {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.item-r {
    display: flex;
    align-items: center;
    flex-direction: row;
    font-size: 13px;
    gap: 9px;
    font-weight: 500;
    color: rgb(4 253 96);
}

form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
    display: block;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.input-wrapper .rsvg {
    position: absolute;
    right: 1rem;
    width: 1.2rem;
    height: 1.2rem;
    margin-bottom: -3px;
    fill: var(--primary-color);
    overflow: hidden;
    transition: fill 0.3s;
    display: flex;
    justify-content: center;
}

input {
    padding: 0.72rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    width: 100%;
    font-family: 'Nunito', 'Noto Sans SC', sans-serif;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(62, 123, 250, 0.15);
}

input:focus+i {
    color: var(--primary-dark);
}

input::placeholder {
    color: #CBD5E0;
    font-weight: 300;
}

.pointer {
    cursor: pointer;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s;
    z-index: -1;
}

button:hover::before {
    left: 100%;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(62, 123, 250, 0.3);
}

button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(62, 123, 250, 0.15);
}

button i {
    margin-right: 8px;
    font-size: 1.1em;
    animation: pulse 2s infinite;
}

button span,
button a {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 新的按钮加载样式 */
.loading-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    position: relative;
    overflow: hidden;
}

.btn-loader {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.btn-loader div {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: btn-loader 1.2s linear infinite;
}

.btn-loader div:nth-child(1) {
    animation-delay: 0s;
    top: 0;
    left: 0;
}

.btn-loader div:nth-child(2) {
    animation-delay: -0.3s;
    top: 0;
    right: 0;
}

.btn-loader div:nth-child(3) {
    animation-delay: -0.6s;
    bottom: 0;
    right: 0;
}

.btn-loader div:nth-child(4) {
    animation-delay: -0.9s;
    bottom: 0;
    left: 0;
}

@keyframes btn-loader {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

.table-container {
    overflow-x: auto;
    table-layout: fixed;
    border-collapse: collapse;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

table {
    border-collapse: collapse;
    overflow: hidden;
    table-layout: fixed;
    width: 100%;
}

th,
td {
    text-align: center;
}

th {
    background-color: rgba(62, 123, 250, 0.08);
    color: var(--primary-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.84rem;
    letter-spacing: 1px;
    text-align: center;
}

thead {
    margin: 0;
}

thead tr {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

thead tr,
thead th {
    height: 2rem;
    line-height: 2rem;
    font-size: 0.84rem;
    padding: 0;
}

tbody tr,
tbody th {
    height: 2rem;
    line-height: 2rem;
    font-size: 0.72rem;
    padding: 0;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.vertical-center {
    vertical-align: middle;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.space-evenly {
    justify-content: space-evenly;
}

.text-justify {
    text-align: justify
}

.flex-row {
    flex-direction: row;
}

.status-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    max-width: 48rem;
    min-height: 13rem;
    padding: 24px;
    background-color: var(--card-bg);
    border-radius: 16px;
    transition: var(--transition);
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    animation: fadeInUp 1s ease-out;
}

#notes-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow-y: auto;
    max-width: 24rem;
    padding: 0.6rem;
    background-color: var(--card-bg);
    border-radius: 16px;
    font-size: 0.8rem;
    text-indent: 2em;
    border: 1px solid #dddddd4f;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.status-panel .header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f3f4f661;
    font-weight: bold;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 1rem;
}

.status-panel .title {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
}

.status-panel .btn-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    color: #555;
}

.status-panel .btn-close:hover {
    color: #000;
}

.status-panel .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    flex: 1;
    padding: 1rem;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.status-panel .content p {
    text-indent: 2em
}

p.noindent {
    text-indent: 0 !important;
}

/* 底部按钮 */
.status-panel .footer {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.btn-ok {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cancel {
    background: #e5e7eb;
    color: #333;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.status-panel .smalltd {
    width: 6rem;
    font-size: 0.84rem;
    font-weight: bolder;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-panel .inputd {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-weight: 500;
    color: var(--text-color);
    padding: 6px;
    max-width: 72%;
}

.col-fixed {
    width: 6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-panel .inputd:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: normal;
    max-width: 300px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

tr:last-child td {
    border-bottom: none;
}

tr {
    transition: var(--transition);
}

tr:hover {
    background-color: rgba(62, 123, 250, 0.03);
    /* 更淡的蓝色 */
}

.download-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.2);
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.25);
}

.download-link i {
    margin-right: 5px;
}

.empty-state {
    text-align: center !important;
    color: rgba(0, 0, 0, 0.3);
    font-style: italic;
    font-weight: 500;
    white-space: nowrap;
    font-size: 1rem;
}

.empty-state i {
    font-size: 3.5rem;
    color: rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.cardiv {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 3rem;
    width: 100%;
    gap: 3rem;
}

.actdiv,
.card {
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card {
    border-radius: 1rem;
    background-color: var(--card-bg);
}

.actdiv {
    border-radius: 12rem;
    padding: 9rem 0px;
    align-items: center;
    width: 600px;
    margin-bottom: 3rem;
}

.card {
    padding: 36px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.status-panel::before {
    background-color: #fafafa;
}

.actdiv:hover,
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.33rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.card-title i {
    margin-right: 12px;
    background: rgba(62, 123, 250, 0.1);
    padding: 0px;
    border-radius: 50%;
    color: var(--primary-color);
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.msgPanel {
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
}

.msgContent {
    padding: 6px 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 36rem;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
}

.msgContent.success {
    background-color: rgb(4 253 96);
    color: #000;
}

.msgContent.error {
    background-color: #fc0202;
    color: #fbfb02;
}

.msgPanel.show {
    display: flex;
}

.msgPanel-icon {
    margin-right: 15px;
    font-size: 24px;
}

.msgContent.success .msgPanel-icon {
    color: #4CAF50;
}

.msgContent.error .msgPanel-icon {
    color: #F44336;
}

.msgPanel-close {
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 10px;
}

.msgPanel-close:hover {
    color: #333;
}

footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    position: fixed;
    bottom: 0;
    height: 3rem;
    line-height: 3rem;
    /* 内容垂直居中 */
}

.slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-top: 24px;
    font-size: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

#edt,
#itg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

#edtext,
#itgext {
    line-height: 13px;
    vertical-align: middle;
}

.endtime {
    margin-top: 24px;
    color: var(--text-light);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    animation: fadeInUp 0.8s ease-out;
}

.endtime i {
    color: var(--primary-color);
}

.timesvg {
    width: 19px;
    height: 19px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mktad {
    animation: pulseRow 12s infinite;
    font-size: 0.84rem;
}

.reshandletd {
    text-align: center;
    vertical-align: middle;
    padding-top: 24px;
    gap: 36px
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

.msgcontainer,
#loading {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 3;
    gap: 2rem;
    background-color: rgba(0, 0, 0, 0.08);
}

#loading {
    z-index: 4;
    background: rgba(0, 0, 0, 0.12);
}

#announce {
    width: 26rem;
    height: 26rem;
}

.loadiv {
    max-width: 800px;
    min-width: 720px;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
}

.spinner {
    width: 72px;
    height: 30px;
    background: rgb(255 255 255 / 51%);
    padding: 3px 9px;
    border-radius: 24px;
}

.spinner .tbounce {
    position: relative;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.spinner .tbounce>div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: bouncedelay 1.33s infinite ease-in-out;
}

.spinner .tbounce .one {
    animation-delay: -0.39s;
    background: rgb(55, 137, 250);
}

.spinner .tbounce .two {
    animation-delay: -0.19s;
    background: rgb(99, 99, 99);
}

.spinner .tbounce .three {
    background: rgb(235, 67, 70);
}

.notice-bar {
    bottom: 0;
    left: 0;
    width: 100%;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    /* margin: 1rem 0 -2rem 0; */
    height: 3rem;
    line-height: 3rem;
    font-size: 0.9rem;
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
}

.marquee-line {
    display: inline-block;
    padding-left: 100%;
    animation: scroll 36s linear infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.linklike {
    color: #2563eb;
    cursor: pointer;
    /* text-decoration: underline; */
}

.no-break {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#unlocksvg {
    margin-left: 0.72px;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

*::-webkit-scrollbar-track {
    background: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .notice-bar:hover .marquee-line {
        animation-play-state: paused;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes bouncedelay {

    0%,
    100% {
        transform: scale(0);
    }

    50% {
        transform: scale(1);
    }
}

@keyframes pulseRow {
    0% {
        color: #f48585;
    }

    25% {
        color: #ee5151;
        font-weight: 300;
    }

    50% {
        color: #fd0000;
        font-weight: 500;
    }

    75% {
        color: #ee5151;
        font-weight: 300;
    }

    100% {
        color: #f48585;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 12px;
    }

    .card {
        padding: 24px;
    }

    .loadiv {
        max-width: 720px;
        min-width: 92%;
        padding: 12px 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        margin-top: -88px;
    }

    .actdiv {
        border-radius: 9rem;
        padding: 49px 0px;
        width: 240px;
        max-width: 72%;
    }

    .timesvg {
        padding-bottom: 2px;
    }

    .status-panel {
        max-width: 29rem;
        padding: 12px 24px;
    }

    .status-panel .smalltd {
        width: 60px;
    }

    .status-panel .inputd {
        max-width: 200px;
    }

    .status-panel .inputd:hover::after {
        max-width: 200px;
    }

    .item-r {
        font-size: 1rem;
    }

    #edtext,
    #itgext {
        line-height: 12px;
        margin-top: 2px;
    }

    .msgContent {
        max-width: 24rem;
        font-size: 0.9rem;
    }

    #unlocksvg {
        margin-left: 0.2px;
    }
}