/* Critical CSS - Inline in <head> for fast initial render */

/* 参考站 imgupscaler.ai 配色系统 */
:root {
    --color-primary: #1ea8d1;
    --color-primary-dark: #0054b4;
    --color-primary-light: #40e0d0;
    --color-primary-50: #e8fbf8;
    --color-primary-100: #c6f4ee;
    --color-primary-200: #9debe3;
    --color-primary-300: #6fe0d6;
    --color-primary-400: #4bd6cd;
    --color-primary-500: #40e0d0;
    --color-primary-600: #35b9b4;
    --color-primary-700: #2f8f9a;
    --color-primary-800: #2d5d87;
    --color-primary-900: #243f63;
    --color-primary-950: #162a44;
    --color-bg: #ffffff;
    --color-bg-muted: #f8fafc;
    --color-card: #ffffff;
    --color-text: #334155;
    --color-text-heading: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --gradient-primary: linear-gradient(45deg, #1ea8d1, #40e0d0);
    --gradient-primary-hover: linear-gradient(45deg, #40e0d0, #1ea8d1);
    --radius-card: 0.75rem;
    --radius-btn: 9999px;
    --shadow-card: none;
    --shadow-card-hover: none;
    --font-sans: 'Poppins', Arial, Helvetica, sans-serif;
}

/* Hide elements with x-cloak until Alpine is ready */
[x-cloak] {
    display: none !important;
}

/* Tailwind base resets for critical elements */
*,
::before,
::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: var(--color-border);
}

body {
    margin: 0;
    line-height: inherit;
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
}

h1 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

p {
    margin: 0;
}

button {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
    background-color: transparent;
    background-image: none;
    cursor: pointer;
    border: 0;
}

a {
    color: var(--color-primary);
    /* Default link color with good contrast */
    text-decoration: underline;
}

a:hover {
    color: var(--color-primary-dark);
}

/* Critical utility classes for above-the-fold content */
.font-manrope {
    font-family: var(--font-sans);
}

.pb-4 {
    padding-bottom: 1rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

.my-8 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.font-extrabold {
    font-weight: 800;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-blue-900 {
    color: #1ea8d1;
}

.text-gray-900 {
    color: rgb(17 24 39);
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.max-w-\[640px\] {
    max-width: 640px;
}

.block {
    display: block;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
}

.btn-primary {
    color: #fff;
    background-color: #1ea8d1;
    border-color: #1ea8d1;
}

.btn-primary:hover {
    background-color: #2f8f9a;
    border-color: #2f8f9a;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.bg-blue-900 {
    background-color: #1ea8d1;
}

.flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.my-16 {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.bg-blue-50 {
    background-color: #e8fbf8;
}

.border {
    border-width: 1px;
}

.border-blue-200 {
    border-color: #9debe3;
}

.text-blue-700 {
    color: #1ea8d1;
}

.font-semibold {
    font-weight: 600;
}

.underline {
    text-decoration-line: underline;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-md-end {
    justify-content: flex-end;
}

.align-items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.mb-0 {
    margin-bottom: 0;
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 2.5rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-select-sm {
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    font-size: 0.875rem;
    background-position: right 0.35rem center;
    background-size: 14px 10px;
}

.text-secondary {
    color: #6c757d;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.fixed {
    position: fixed;
}

.left-0 {
    left: 0;
}

.bottom-0 {
    bottom: 0;
}

.p-4 {
    padding: 1rem;
}

.bg-white {
    background-color: #fff;
}

.text-gray-text {
    color: #64748b;
}

.flex-col {
    flex-direction: column;
}

/* Grid utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.min-h-\[300px\] {
    min-height: 300px;
}

.min-h-\\[550px\\] {
    min-height: 550px;
}

.box-border {
    box-sizing: border-box;
}

.border-gray-border {
    border-color: #e5e7eb;
}

.bg-gray-light {
    background-color: #f9fafb;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.relative {
    position: relative;
}

.z-50 {
    z-index: 50;
}

/* Custom styles from index.css */
video {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#loading {
    width: 100%;
}

#download-link {
    position: relative;
    margin: auto;
    width: 100%;
    display: flex;
}

/* Bootstrap button styles */
.btn-outline-primary {
    color: #1ea8d1;
    border: 1px solid #1ea8d1;
    background-color: transparent;
    cursor: pointer;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #1ea8d1;
    border-color: #1ea8d1;
}

.btn-check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.btn-check:checked+.btn-outline-primary {
    color: #fff;
    background-color: #1ea8d1;
    border-color: #1ea8d1;
}

/* Progress bar */
.progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: 0.75rem;
    background-color: #e9ecef;
    border-radius: 0.25rem;
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: #1ea8d1;
    /* Removed transition for better INP performance */
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    /* Removed animation for better INP performance */
}

/* Keyframes kept for backwards compatibility but not used */
@keyframes progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }

    100% {
        background-position: 0 0;
    }
}

/* Additional layout utilities */
.text-gray-600 {
    color: #475569;
}

.text-yellow-900 {
    color: #78350f;
}

.bg-yellow-50 {
    background-color: #fefce8;
}

.border-yellow-200 {
    border-color: #fef08a;
}

.text-primary {
    color: #1ea8d1;
}

.no-underline {
    text-decoration: none;
}

.text-inherit {
    color: inherit !important;
    text-decoration: inherit !important;
}

.cursor-text {
    cursor: text;
}

.cursor-pointer {
    cursor: pointer;
}

.hover\:text-primary:hover {
    color: #1ea8d1;
}

.h-4 {
    height: 1rem;
}

.w-4 {
    height: 1rem;
}

.h-6 {
    height: 4rem;
}

.w-6 {
    width: 4rem;
}

.w-48 {
    width: 12rem;
}

.h-48 {
    height: 12rem;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\:bg-blue-50:hover {
    background-color: #e8fbf8;
}

.hover\:bg-blue-100:hover {
    background-color: #c6f4ee;
}

.hover\:text-blue-600:hover {
    color: #2f8f9a;
}

.hover\:text-blue-700:hover {
    color: #0054b4;
}

.hover\:underline:hover {
    text-decoration-line: underline;
}

.text-blue-400 {
    color: #6fe0d6;
}

.text-blue-600 {
    color: #2f8f9a;
}

.text-blue-900 {
    color: #1ea8d1;
}

.p-1 {
    padding: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.25rem;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.my-3 {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.my-5 {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-medium {
    font-weight: 500;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-black {
    background-color: #000;
}

.bg-opacity-70 {
    background-color: rgba(0, 0, 0, 0.7);
}

.text-white {
    color: #fff;
}

.inline-block {
    display: inline-block;
}

.pointer-events-none {
    pointer-events: none;
}

.absolute {
    position: absolute;
}

.z-10 {
    z-index: 10;
}

.h-fit {
    height: fit-content;
}

.w-fit {
    width: fit-content;
}

.justify-center {
    justify-content: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.hidden {
    display: none;
}

/* Image compare viewer styles */
.icv {
    position: relative;
    overflow: hidden;
    cursor: row-resize
}

.icv__icv--vertical {
    cursor: row-resize
}

.icv__icv--horizontal {
    cursor: col-resize
}

.icv__img {
    pointer-events: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    max-width: none;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    top: 0;
    display: block
}

.icv__is--fluid .icv__img {
    display: none
}

.icv__img-a {
    height: auto;
    position: static;
    z-index: 1;
    left: 0px
}

.icv__img-b {
    height: 100%;
    position: absolute;
    z-index: 2;
    left: auto;
    right: 0px;
    width: auto
}

.icv__icv--vertical .icv__img-b {
    width: 100%;
    height: auto
}

.icv__imposter {
    z-index: 4;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%
}

.icv__wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    right: 0px;
    top: 0px;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    z-index: 3
}

.icv__is--fluid .icv__wrapper,
.icv__icv--vertical .icv__wrapper {
    width: 100% !important
}

.icv__is--fluid .icv__wrapper,
.icv__icv--horizontal .icv__wrapper {
    height: 100% !important
}

.icv__fluidwrapper {
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%
}

.icv__control {
    position: absolute;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 100%;
    top: 0px;
    z-index: 5
}

.icv__icv--vertical .icv__control {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    left: 0;
    width: 100%
}

.icv__control-line {
    height: 50%;
    width: 2px;
    z-index: 6
}

.icv__icv--vertical .icv__control-line {
    width: 50%
}

.icv__theme-wrapper {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: absolute;
    -webkit-transition: all 0.1s ease-out 0s;
    transition: all 0.1s ease-out 0s;
    z-index: 5
}

.icv__icv--vertical .icv__theme-wrapper {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column
}

.icv__arrow-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-transition: all 0.1s ease-out 0s;
    transition: all 0.1s ease-out 0s
}

.icv__arrow-a {
    -webkit-transform: scale(1.5) rotateZ(180deg);
    transform: scale(1.5) rotateZ(180deg);
    height: 20px;
    width: 20px;
    -webkit-filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.33));
    filter: drop-shadow(0px -3px 5px rgba(0, 0, 0, 0.33))
}

.icv__arrow-b {
    -webkit-transform: scale(1.5) rotateZ(0deg);
    transform: scale(1.5) rotateZ(0deg);
    height: 20px;
    width: 20px;
    -webkit-filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.33));
    filter: drop-shadow(0px 3px 5px rgba(0, 0, 0, 0.33))
}

.icv__circle {
    width: 50px;
    height: 50px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border-radius: 999px
}

.icv__label {
    position: absolute;
    bottom: 1rem;
    z-index: 12;
    background: rgba(0, 0, 0, 0.33);
    color: white;
    border-radius: 3px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.icv__label.vertical {
    bottom: auto;
    left: 1rem
}

.icv__label.on-hover {
    -webkit-transform: scale(0);
    transform: scale(0);
    -webkit-transition: 0.25s cubic-bezier(0.68, 0.26, 0.58, 1.22);
    transition: 0.25s cubic-bezier(0.68, 0.26, 0.58, 1.22)
}

.icv:hover .icv__label.on-hover {
    -webkit-transform: scale(1);
    transform: scale(1)
}

.icv__label-before {
    left: 1rem
}

.icv__label-after {
    right: 1rem
}

.icv__label-before.vertical {
    top: 1rem
}

.icv__label-after.vertical {
    bottom: 1rem;
    right: auto
}

.icv__body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

/* Inline spinner animation */
.inline-spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.gap-1 {
    gap: 0.25rem;
}

/* Disabled button state */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-60 {
    opacity: 0.6;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* Responsive utilities for critical content */
@media (min-width: 768px) {
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .md\:my-12 {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .md\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .md\:my-16 {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }

    .md\:h-\\[360px\\] {
        height: 360px;
    }

    .md\:h-\\[680px\\] {
        height: 680px;
    }

    .md\:p-6 {
        padding: 1.5rem;
    }

    .md\:text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .md\:w-64 {
        width: 16rem;
    }

    .md\:h-64 {
        height: 16rem;
    }

    .md\:flex-row {
        flex-direction: row;
    }

    .md\:justify-between {
        justify-content: space-between;
    }

    .md\:items-center {
        align-items: center;
    }

    .md\:text-left {
        text-align: left;
    }

    .md\:text-right {
        text-align: right;
    }

    .md\:block {
        display: block;
    }
}

@media (min-width: 768px) {
    body>div:first-of-type {
        position: fixed !important;
        top: 1rem;
        right: 1rem;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

.video-control-btn {
    transition: background-color 0.2s, color 0.2s;
}

.video-control-btn:hover svg {
    fill: white !important;
}

/* Footer at bottom styles */
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 2rem;
}

/* Enhanced Header Styles */
header {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    max-width: 1400px;
}

header .text-xl {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    letter-spacing: -0.5px;
    text-decoration: none;
}

header nav a {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: 0.5rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

header nav a:hover {
    color: var(--color-primary);
    background-color: var(--color-primary-50);
}

/* Enhanced Footer Styles */
footer {
    background: var(--color-bg-muted);
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-top: auto;
}

footer .container {
    max-width: 1400px;
}

footer .flex {
    gap: 2rem;
}

footer a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--color-primary);
}

footer .text-gray-300 {
    display: none;
}

footer .text-center {
    color: var(--color-text-muted);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.text-center b {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* FAQ Section Styles */
.faq-section {
    padding: 1rem 0;
    background: var(--color-bg-muted);
}

.faq-section .container {
    max-width: 1200px;
}

.faq-section .text-center a {
    text-decoration: none !important;
}

.faq-section b {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* ===== 首页专属组件样式（原 index.html 内联 style） ===== */

.fixed-favorite {
    position: fixed;
    right: 24px;
    top: 300px;
    z-index: 999;
}

.fixed-favorite button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: #1ea8d1;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(.4, 0, .2, 1), background 0.25s;
    color: #fff;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.fixed-favorite button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 70%);
    pointer-events: none;
}

.fixed-favorite button:hover {
    transform: translateY(-3px) scale(1.06);
    background: #2f8f9a;
}

.fixed-favorite button:active {
    transform: scale(0.95);
}

.fixed-favorite button svg {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    transition: fill 0.3s, transform 0.3s;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.fixed-favorite button span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.5px;
}

.fixed-favorite button.active {
    background: #243f63;
}

.fixed-favorite button.active svg {
    fill: #6fe0d6;
    stroke: #6fe0d6;
    transform: scale(1.15);
}

/* Top slide-down toast */
.fav-top-toast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding-top: 0;
    pointer-events: none;
}

.fav-top-toast-inner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #1ea8d1;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 28px rgba(30, 168, 209, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(.4, 0, .2, 1), opacity 0.4s;
    pointer-events: auto;
}

.fav-top-toast-inner.show {
    transform: translateY(0);
    opacity: 1;
}

.fav-top-toast-inner svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .fixed-favorite {
        display: none;
    }
}

/* Tooltip 样式（settings-save-to-disk 使用） */
.tooltip-trigger {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text);
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    margin-left: 4px;
    vertical-align: middle;
}

.tooltip-trigger::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-text-heading);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: normal;
    width: max-content;
    max-width: 260px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.tooltip-trigger:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Featured By 样式 */
.featured-by-link {
    opacity: 0.35;
    filter: grayscale(100%);
    z-index: 0;
    transition: opacity 0.2s, filter 0.2s;
}

.featured-by-link:hover {
    opacity: 0.75;
    filter: grayscale(0%);
}

#featured-by {
    position: fixed;
    bottom: 50px;
    left: 0;
    right: 0;
    margin-top: 0;
    pointer-events: none;
    z-index: 5;
}

#featured-by .featured-by-logos {
    pointer-events: auto;
}

@media (max-width: 768px) {
    #featured-by {
        bottom: 120px;
    }
}

/* 上传区域拖放 & 悬停效果 */
#file-load-panel {
    border-style: dashed;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#file-load-panel .upload-icon {
    color: var(--color-text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

/* 鼠标悬停效果 */
#file-load-panel:hover {
    background-color: var(--color-primary-50);
    border-color: var(--color-primary-200);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 168, 209, 0.08);
}

#file-load-panel:hover .upload-icon {
    color: var(--color-primary);
    transform: translateY(-4px);
}

/* 拖放中效果 */
#file-load-panel.is-dragging {
    background-color: var(--color-primary-50) !important;
    border-color: var(--color-primary-dark) !important;
    border-width: 2px !important;
    transform: scale(1.01);
    box-shadow: 0 12px 32px rgba(30, 168, 209, 0.15);
}

#file-load-panel.is-dragging .upload-icon {
    color: var(--color-primary-dark);
    transform: translateY(-6px) scale(1.1);
}

.faq-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.faq-card:hover {
    border-color: var(--color-primary-200);
}

.faq-card h3 {
    color: var(--color-text-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.faq-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Enhanced Main Styles */
main {
    padding: 3rem 0 1rem;
    background: var(--color-bg);
}

main #title {
    display: none;
    color: var(--color-primary);
    letter-spacing: -1px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(30, 168, 209, 0.15);
}

main #member-welcome {
    background: var(--color-primary-50);
    padding: 1rem 2rem;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-primary-200);
    max-width: fit-content;
    margin: 0 auto 2rem;
}

main #member-welcome a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Language Banner Styles */
main [x-show*="languageBanner"] {
    background: var(--color-primary-50);
    border: 1px solid var(--color-primary-200);
    border-radius: 0.75rem;
}

/* Panel Styles */
main #unsupported-panel,
main #error-panel,
main #file-load-panel,
main #loading-panel,
main #file-loading-panel,
main #start-panel {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
}

/* Button Styles */
main .btn-primary {
    background: var(--color-primary);
    border: none;
    transition: background 0.2s ease, transform 0.1s ease;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-btn);
}

main .btn-primary:hover {
    background: var(--color-primary-dark);
}

main .btn-primary:active {
    transform: translateY(1px);
}

main #max-upscaler-button {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* Progress Bar Styles */
main .progress {
    background: var(--color-primary-50);
    border: 1px solid var(--color-primary-200);
    border-radius: 0.5rem;
}

main .progress-bar {
    background: var(--color-primary);
    border-radius: 0.5rem;
}

/* Canvas and Video Styles */
main #image-compare,
main #video-compare {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

main canvas,
main video {
    border-radius: var(--radius-card);
}

/* Video Controls */
main #video-controls button {
    background: var(--color-primary-50);
    border: 1px solid var(--color-primary-200);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    color: var(--color-primary);
}

main #video-controls button:hover {
    background: var(--color-primary-100);
    border-color: var(--color-primary);
}

/* Text Styles */
main p {
    color: var(--color-text);
    line-height: 1.75;
}

main .text-xl,
main .text-2xl {
    color: var(--color-text-heading);
    font-weight: 500;
}

main .text-lg {
    color: var(--color-text);
}

/* Link Styles */
main a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

main a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Tap Compare Label */
main #tap-compare-label {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}



.text-primary-800 {
    --tw-text-opacity: 1;
    color: var(--color-primary-900);
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: .875rem;
    line-height: 1.25rem;
}

.py-2 {
    padding-bottom: .5rem;
    padding-top: .5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-5 {
    padding-bottom: 1.25rem;
    padding-top: 1.25rem;
}

.bg-primary-100 {
    --tw-bg-opacity: 1;
    background-color: var(--color-primary-100);
}

.rounded-full {
    border-radius: 9999px;
}

/* Polished tool page skin */
:root {
    --color-primary: #1ea8d1;
    --color-primary-dark: #075985;
    --color-primary-light: #35c7d4;
    --color-accent: #f59e0b;
    --color-bg: #f7fbfd;
    --color-card: #ffffff;
    --color-text: #334155;
    --color-text-heading: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #dbe7ee;
    --radius-card: 8px;
    --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.08);
    --shadow-card-hover: 0 22px 60px rgba(15, 23, 42, 0.12);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fbfd 46%, #ffffff 100%);
    color: var(--color-text);
}

header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(219, 231, 238, 0.9);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

header .container {
    max-width: 1180px;
    padding: 0.75rem 1.25rem;
}

header .justify-between {
    gap: 1.5rem;
}

header a[href="/"] {
    min-width: 0;
    text-decoration: none;
}

header a[href="/"] img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 48px;
    filter: drop-shadow(0 10px 22px rgba(30, 168, 209, 0.18));
}

header a[href="/"] span {
    color: var(--color-primary-dark);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 0;
}

header nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 0.65rem 0.9rem;
    color: #475569;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

header nav a:hover {
    color: var(--color-primary-dark);
    background: #edfaff;
    box-shadow: inset 0 0 0 1px rgba(30, 168, 209, 0.12);
    transform: translateY(-1px);
    text-decoration: none;
}

header nav a span {
    border-radius: 6px !important;
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.22);
}

main {
    position: relative;
    padding: 3.5rem 1rem 1.5rem;
    background:
        linear-gradient(180deg, rgba(232, 251, 248, 0.55) 0%, rgba(255, 255, 255, 0) 42%);
}

main #title {
    display: block;
    max-width: 860px;
    margin: 0 auto 1.1rem;
    color: var(--color-text-heading);
    font-size: 2.75rem;
    line-height: 1.16;
    letter-spacing: 0;
    text-shadow: none;
}

main>div[x-show*="state === 'init'"],
main>div[x-show*="state === 'unsupported'"] {
    flex-wrap: wrap;
}

main>div[x-show*="state === 'init'"] .rounded-full,
main>div[x-show*="state === 'unsupported'"] .rounded-full {
    border: 1px solid rgba(30, 168, 209, 0.12);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

main>p.w-full.text-center.my-4 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text);
}

main>p.w-full.text-center.my-4 a,
.share-section a {
    color: var(--color-primary-dark);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(7, 89, 133, 0.24);
}

main #unsupported-panel,
main #error-panel,
main #incompatible-panel,
main #hdr-unsupported-panel,
main #unsupported-format-panel,
main #resume-panel,
main #file-load-panel,
main #loading-panel,
main #file-loading-panel,
main #start-panel {
    width: min(100%, 720px);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(219, 231, 238, 0.95);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

main #file-load-panel {
    min-height: 340px;
    padding: 2.25rem;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(30, 168, 209, 0.75), rgba(53, 199, 212, 0.65), rgba(245, 158, 11, 0.45)) border-box;
    border: 1px dashed transparent;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.1);
}

main #file-load-panel .upload-icon {
    width: 66px;
    height: 66px;
    padding: 14px;
    color: var(--color-primary-dark);
    background: #eefcff;
    border: 1px solid rgba(30, 168, 209, 0.16);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 30px rgba(30, 168, 209, 0.12);
}

main #file-load-panel:hover {
    background:
        linear-gradient(#fbfeff, #fbfeff) padding-box,
        linear-gradient(135deg, rgba(30, 168, 209, 0.95), rgba(53, 199, 212, 0.85), rgba(245, 158, 11, 0.62)) border-box;
    border-color: transparent;
    box-shadow: var(--shadow-card-hover);
}

main #file-load-panel.is-dragging {
    border-color: transparent !important;
    background:
        linear-gradient(#f2fdff, #f2fdff) padding-box,
        linear-gradient(135deg, var(--color-primary), var(--color-primary-light), var(--color-accent)) border-box !important;
}

main #file-load-panel p:first-of-type {
    margin-top: 1.25rem;
    color: var(--color-text-heading);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.4;
}

main #file-load-panel p:last-of-type {
    max-width: 520px;
    color: var(--color-text-muted) !important;
    line-height: 1.7;
}

main .btn-primary,
.action-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(30, 168, 209, 0.22);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

main .btn-primary:hover,
.action-button:hover {
    color: #fff;
    filter: brightness(1.03);
    box-shadow: 0 16px 34px rgba(30, 168, 209, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
}

main .btn-primary:active,
.action-button:active {
    transform: translateY(0);
}

main .btn-outline-primary {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(30, 168, 209, 0.32);
    border-radius: 8px;
    background: #ffffff;
    color: var(--color-primary-dark);
    font-weight: 800;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

main .btn-outline-primary:hover,
main .btn-check:checked+.btn-outline-primary {
    color: #fff;
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: 0 10px 24px rgba(7, 89, 133, 0.2);
}

main #settings,
main #settings-save-to-disk {
    background: #f8fcfd;
    border: 1px solid rgba(219, 231, 238, 0.95);
    border-radius: var(--radius-card);
}

main .progress {
    height: 14px;
    background: #eaf4f7;
    border: 1px solid rgba(30, 168, 209, 0.14);
    border-radius: 999px;
}

main .progress-bar {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 999px;
}

main #image-compare,
main #video-compare,
main canvas,
main video {
    border-radius: var(--radius-card);
}

main #download-link .flex-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.share-section {
    padding: 0.75rem 1rem 2rem;
    background: #ffffff;
}

.share-section>p {
    color: var(--color-text);
    line-height: 1.7;
}

.share-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.action-button {
    cursor: pointer;
}

.action-button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.action-button-warm {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.24);
}

.action-button-warm:hover {
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.32);
}

.faq-section {
    padding: 0;
    background: #f7fbfd;
}

.faq-section+.faq-section {
    background: #ffffff;
}

.faq-section .container {
    max-width: 1120px;
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
}

.faq-section h2 {
    margin-bottom: 0.95rem;
    color: var(--color-text-heading) !important;
    font-size: 2rem;
    line-height: 1.3;
    letter-spacing: 0;
}

.faq-section h2+p {
    max-width: 760px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.faq-card {
    min-height: 100%;
    padding: 1.35rem;
    border: 1px solid rgba(219, 231, 238, 0.95);
    border-radius: var(--radius-card);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-card:hover {
    border-color: rgba(30, 168, 209, 0.32);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.faq-card h3 {
    color: var(--color-text-heading);
    font-size: 1.06rem;
    line-height: 1.45;
}

.faq-card p {
    color: var(--color-text-muted);
    line-height: 1.75;
}

.faq-card>div:first-child>span:first-child {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eefcff;
    border: 1px solid rgba(30, 168, 209, 0.14);
    border-radius: 8px;
}

.faq-section .text-center.mt-8 a {
    border-radius: 8px !important;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)) !important;
    box-shadow: 0 12px 28px rgba(30, 168, 209, 0.22);
}

.fixed-favorite {
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
}

.fixed-favorite button {
    width: 66px;
    height: 66px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    box-shadow: 0 16px 32px rgba(30, 168, 209, 0.28);
}

.fixed-favorite button:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
}

.fav-top-toast-inner {
    background: var(--color-primary-dark);
    border-radius: 0 0 8px 8px;
}

footer {
    margin-top: 0;
    padding: 2.25rem 0;
    background: #ffffff;
    border-top: 1px solid rgba(219, 231, 238, 0.95);
}

footer .container {
    max-width: 1120px;
}

footer .flex {
    gap: 0.4rem 0.75rem;
}

footer a {
    border-radius: 8px;
    color: var(--color-text-muted);
}

footer a:hover {
    color: var(--color-primary-dark);
    background: #edfaff;
    text-decoration: none;
}

@media (max-width: 900px) {
    header .container {
        padding: 0.8rem 1rem;
    }

    header .justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    header a[href="/"] img {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    header a[href="/"] span {
        font-size: 1.2rem;
        white-space: normal;
    }

    header nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        gap: 0.35rem;
        padding-bottom: 0.2rem;
        scrollbar-width: none;
    }

    header nav::-webkit-scrollbar {
        display: none;
    }

    header nav a {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0.55rem 0.75rem;
        font-size: 0.9rem;
    }

    main {
        padding: 2rem 0.75rem 1rem;
    }

    main #title {
        font-size: 1.85rem;
        line-height: 1.25;
    }

    main #file-load-panel {
        min-height: 300px;
        padding: 1.5rem 1rem;
    }

    main #file-load-panel p:first-of-type {
        font-size: 1.2rem;
    }

    main .btn-primary,
    .action-button {
        min-height: 44px;
        padding: 0.72rem 1.05rem;
        font-size: 0.95rem;
    }

    .share-section {
        padding-bottom: 1.5rem;
    }

    .share-actions {
        gap: 0.65rem;
    }

    .faq-section .container {
        padding-top: 2.4rem;
        padding-bottom: 2.4rem;
    }

    .faq-section h2 {
        font-size: 1.45rem;
    }
}

@media (max-width: 520px) {
    header a[href="/"] {
        width: 100%;
    }

    header a[href="/"] span {
        max-width: calc(100vw - 86px);
    }

    main>div[x-show*="state === 'init'"],
    main>div[x-show*="state === 'unsupported'"] {
        gap: 0.5rem !important;
    }

    main>div[x-show*="state === 'init'"] .rounded-full,
    main>div[x-show*="state === 'unsupported'"] .rounded-full {
        padding: 0.45rem 0.85rem;
    }

    main #unsupported-panel,
    main #error-panel,
    main #incompatible-panel,
    main #hdr-unsupported-panel,
    main #unsupported-format-panel,
    main #resume-panel,
    main #file-load-panel,
    main #loading-panel,
    main #file-loading-panel,
    main #start-panel {
        width: 100%;
    }

    main #input-button {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .action-button {
        flex: 1 1 150px;
    }

    .faq-card {
        padding: 1.1rem;
    }
}


.text-green-800 {
    --tw-text-opacity: 1;
    color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: .875rem;
    line-height: 1.25rem;
}

.py-2 {
    padding-bottom: .5rem;
    padding-top: .5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.bg-green-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}

.rounded-full {
    border-radius: 9999px;
}


.text-purple-800 {
    --tw-text-opacity: 1;
    color: rgb(107 33 168 / var(--tw-text-opacity, 1));
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: .875rem;
    line-height: 1.25rem;
}

.py-2 {
    padding-bottom: .5rem;
    padding-top: .5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.bg-purple-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1));
}

.rounded-full {
    border-radius: 9999px;
}

/* ===== Steps Section ===== */
.steps-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 3rem 0;
}

.steps-section .container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    position: relative;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(30, 168, 209, 0.12);
    border-color: #1ea8d1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    background: #1ea8d1;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(30, 168, 209, 0.25);
}

.step-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.step-desc {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}
