:root {
    --site-primary: #0A5CFF;
    --site-primary-dark: #0747C7;
    --site-cyan: #18A0D8;
    --site-green: #13A86B;
    --site-amber: #E68A00;
    --site-ink: #0B1628;
    --site-text: #334155;
    --site-muted: #64748B;
    --site-line: #E5EAF1;
    --site-soft: #F5F8FC;
    --site-white: #FFFFFF;
    --site-container: 1440px;
    --site-container-wide: 1560px;
    --site-radius: 8px;
    --site-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    --site-shadow-hover: 0 22px 46px rgba(15, 23, 42, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--site-text);
    background: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

body:not(.auth-page):not(.user-console) {
    background:
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFD 48%, #FFFFFF 100%);
}

body * {
    box-sizing: border-box;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--site-ink);
    letter-spacing: 0;
}

p {
    color: inherit;
}

.container,
.public-container,
.common-layout {
    width: 100%;
    max-width: var(--site-container) !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

.transition-custom,
.card-hover,
.hover\:shadow-lg,
.hover\:shadow-md,
.hover\:shadow-xl,
.hover\:shadow-hover {
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}

.card-hover:hover,
.hover\:shadow-lg:hover,
.hover\:shadow-md:hover,
.hover\:shadow-xl:hover,
.hover\:shadow-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--site-shadow-hover) !important;
}

.hero-bg,
section.hero-bg,
.relative.overflow-hidden.bg-white.shadow-sm.border-b.border-gray-100 {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(248, 251, 255, .98) 0%, rgba(248, 251, 255, .9) 44%, rgba(239, 246, 255, .72) 100%),
        url('/static/index/picture/banner_4.jpg') center/cover no-repeat !important;
    border-bottom: 1px solid var(--site-line) !important;
    box-shadow: none !important;
}

.hero-bg::after,
.relative.overflow-hidden.bg-white.shadow-sm.border-b.border-gray-100::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 92, 255, .18), transparent);
}

#hero-particles {
    display: none !important;
}

.animate-blob,
.filter.blur-3xl,
.blur-3xl.rounded-full {
    display: none !important;
}

.hero-bg > .container,
.relative.overflow-hidden.bg-white.shadow-sm.border-b.border-gray-100 > .container {
    position: relative;
    z-index: 2;
}

section.py-20,
section.py-16,
section.md\:py-24,
.container.py-12 {
    position: relative;
}

.pt-28,
.pt-32,
.pt-36 {
    padding-top: 96px !important;
}

.pb-20,
.pb-24,
.py-20 {
    padding-bottom: 82px !important;
}

.py-20,
.py-16,
.md\:py-24 {
    padding-top: 82px !important;
    padding-bottom: 82px !important;
}

.bg-gray-50,
.bg-light-1,
.bg-light,
.home-section--soft {
    background: linear-gradient(180deg, #F8FAFD 0%, #F3F7FC 100%) !important;
}

.bg-white,
.feature-card,
.module-card,
.card,
.information-card,
.basic-information,
.rounded-2xl,
.rounded-xl {
    border-radius: var(--site-radius) !important;
}

.bg-white.rounded-2xl,
.bg-white.rounded-xl,
.feature-card,
.module-card,
.card,
.information-card,
.basic-information,
.shadow-md,
.shadow-sm,
.shadow-soft {
    border: 1px solid rgba(226, 232, 240, .88) !important;
    box-shadow: var(--site-shadow) !important;
}

.text-dark,
.text-gray-900,
.text-dark-1 {
    color: var(--site-ink) !important;
}

.text-dark-2,
.text-gray-600,
.text-gray-500,
.public-msg {
    color: var(--site-muted) !important;
}

.text-primary,
.hover\:text-primary:hover,
.hover\:text-blue-600:hover {
    color: var(--site-primary) !important;
}

.bg-primary,
.bg-blue-600,
.hover\:bg-primary\/90:hover,
.hover\:bg-blue-700:hover {
    background-color: var(--site-primary) !important;
}

.border-primary,
.border-blue-500 {
    border-color: var(--site-primary) !important;
}

.text-gradient {
    color: var(--site-primary) !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

.home-section__header {
    max-width: 900px;
    margin: 0 auto 42px;
    text-align: center;
}

.home-section__title {
    color: var(--site-ink);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.18;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0;
}

.home-section__desc {
    max-width: 780px;
    margin: 16px auto 0;
    color: var(--site-muted);
    font-size: 16px;
    line-height: 1.8;
}

.home-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 22px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 780;
    line-height: 1;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.home-btn:hover {
    transform: translateY(-2px);
}

.home-btn--primary {
    background: var(--site-primary);
    color: #FFFFFF !important;
    box-shadow: 0 12px 24px rgba(10, 92, 255, 0.22);
}

.home-btn--primary:hover {
    background: var(--site-primary-dark);
    color: #FFFFFF !important;
    box-shadow: 0 16px 30px rgba(10, 92, 255, 0.26);
}

.home-btn--ghost {
    background: rgba(255, 255, 255, 0.82);
    color: var(--site-ink) !important;
    border-color: rgba(10, 92, 255, 0.18);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.home-btn--ghost:hover {
    color: var(--site-primary) !important;
    border-color: rgba(10, 92, 255, 0.34);
    background: #FFFFFF;
}

.badge,
span.inline-block.px-4.py-1.rounded-full,
.home-eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 10px !important;
    border: 1px solid rgba(10, 92, 255, 0.16) !important;
    border-radius: 6px !important;
    background: rgba(10, 92, 255, 0.06) !important;
    color: var(--site-primary-dark) !important;
    font-size: 13px !important;
    font-weight: 760 !important;
    line-height: 1;
}

.btn-primary,
.bg-primary.text-white,
.bg-blue-600.text-white,
button[type="submit"],
a.bg-primary,
a.bg-blue-600 {
    min-height: 42px;
    border-radius: 8px !important;
    font-weight: 760 !important;
    box-shadow: 0 12px 24px rgba(10, 92, 255, 0.18) !important;
}

.btn-primary:hover,
.bg-primary.text-white:hover,
.bg-blue-600.text-white:hover,
button[type="submit"]:hover,
a.bg-primary:hover,
a.bg-blue-600:hover {
    background: var(--site-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(10, 92, 255, 0.24) !important;
}

.btn-outline,
a.border.border-primary,
a.border.border-gray-200,
button.border {
    min-height: 42px;
    border-radius: 8px !important;
    border-color: rgba(10, 92, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    color: var(--site-ink) !important;
    font-weight: 760 !important;
}

.btn-outline:hover,
a.border.border-primary:hover,
a.border.border-gray-200:hover,
button.border:hover {
    color: var(--site-primary) !important;
    border-color: rgba(10, 92, 255, 0.34) !important;
    background: #FFFFFF !important;
}

.grid > .bg-white,
.grid > .feature-card,
.grid > .module-card,
.grid > .card {
    min-width: 0;
}

.feature-card,
.module-card,
.prod-item,
article.bg-white,
.home-product-card,
.home-news-card {
    overflow: hidden;
}

.feature-card h3,
.module-card h3,
.prod-item h3,
article h2,
article h3 {
    line-height: 1.35 !important;
}

.feature-card p,
.module-card p,
.prod-item p,
article p {
    line-height: 1.72 !important;
}

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

input,
textarea,
select {
    border-radius: 8px !important;
    border: 1px solid #D9E2EF !important;
    background: #FFFFFF !important;
    color: var(--site-text);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(10, 92, 255, .52) !important;
    box-shadow: 0 0 0 4px rgba(10, 92, 255, .08) !important;
}

table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 8px;
}

thead tr,
.bg-light tr {
    background: #F8FAFC !important;
}

th,
td {
    border-color: #E7EDF5 !important;
}

.overflow-x-auto {
    border-radius: 8px;
}

.pagination,
.page,
.pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pagination a,
.pagination span,
.page a,
.page span {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--site-line);
    background: #FFFFFF;
    color: var(--site-muted);
}

.pagination .active,
.pagination span.current,
.page .active,
.page span.current {
    border-color: var(--site-primary);
    background: var(--site-primary);
    color: #FFFFFF;
}

.article-content,
.content,
.detail-content {
    color: var(--site-text);
    line-height: 1.86;
}

.article-content img,
.content img,
.detail-content img {
    border-radius: 8px;
    box-shadow: var(--site-shadow);
}

.article-content h1,
.article-content h2,
.article-content h3,
.content h1,
.content h2,
.content h3,
.detail-content h1,
.detail-content h2,
.detail-content h3 {
    margin-top: 1.4em;
    margin-bottom: .65em;
    font-weight: 800;
}

.line-clamp-1,
.line-clamp-2,
.truncate {
    min-width: 0;
}

#toast {
    max-width: calc(100vw - 32px);
}

#backToTop {
    width: 44px !important;
    height: 44px !important;
    border-radius: 8px !important;
    background: var(--site-primary) !important;
    box-shadow: 0 14px 28px rgba(10, 92, 255, .22) !important;
}

.auth-page {
    min-height: 100vh;
    overflow: auto !important;
    background:
        linear-gradient(135deg, rgba(10, 92, 255, 0.08), rgba(24, 160, 216, 0.04)),
        #F5F8FC !important;
}

.auth-page > .w-full.h-full {
    min-height: 100vh;
    box-shadow: none !important;
}

.auth-page .login-bg {
    background:
        linear-gradient(135deg, rgba(11, 22, 40, .94), rgba(10, 92, 255, .86)),
        url('/static/index/picture/banner_3.jpg') center/cover no-repeat !important;
}

.auth-page .login-bg::before {
    display: none !important;
    animation: none !important;
}

.auth-page .login-bg .rounded-full.blur-3xl {
    display: none !important;
}

.auth-page .login-bg .bg-white\/10 {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .1) !important;
}

.auth-page .lg\:w-1\/2.flex.items-center.justify-center.p-8,
.auth-page .w-full.lg\:w-1\/2 {
    background: #FFFFFF;
}

.auth-page form input {
    min-height: 46px;
    background: #F8FAFC !important;
}

.auth-page form input:focus {
    background: #FFFFFF !important;
}

.auth-page #submitBtn {
    min-height: 46px;
}

.auth-page .max-w-md {
    max-width: 430px !important;
}

.auth-page .text-center h2,
.auth-page .lg\:text-left h2 {
    color: var(--site-ink) !important;
    font-weight: 850 !important;
}

.market-home,
.product-list,
.product-detail,
.developer-apply {
    max-width: var(--site-container) !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

.market-header {
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid var(--site-line);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05) !important;
    backdrop-filter: blur(14px);
}

.market-header .header-container {
    max-width: var(--site-container) !important;
    height: 76px !important;
}

.market-header .header-logo {
    color: var(--site-ink) !important;
    font-weight: 850 !important;
}

.market-header .header-logo i {
    color: var(--site-primary);
}

.market-header .header-nav {
    gap: 8px !important;
}

.market-header .header-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 8px;
    color: var(--site-text) !important;
    font-size: 14px !important;
    font-weight: 700;
}

.market-header .header-nav a:hover,
.market-header .header-nav a.active {
    background: rgba(10, 92, 255, .08);
    color: var(--site-primary) !important;
}

.market-header .header-actions a[style*="background"],
.market-header .header-actions a:last-child {
    border-radius: 8px !important;
}

.market-home .hero-section,
.hero-section {
    border-radius: 8px !important;
    background:
        linear-gradient(135deg, rgba(11, 22, 40, .96), rgba(10, 92, 255, .86)),
        url('/static/index/picture/banner_4.jpg') center/cover no-repeat !important;
    box-shadow: var(--site-shadow) !important;
}

.market-home .hero-title,
.hero-section .hero-title,
.hero-section h1 {
    color: #FFFFFF !important;
    letter-spacing: 0;
}

.market-home .hero-desc,
.hero-section .hero-subtitle,
.hero-section p {
    color: rgba(255,255,255,.78) !important;
}

.entrance-card,
.product-card,
.plugin-card,
.template-card,
.detail-card,
.apply-card {
    border: 1px solid var(--site-line) !important;
    border-radius: 8px !important;
    box-shadow: var(--site-shadow) !important;
}

.entrance-card:hover,
.product-card:hover,
.plugin-card:hover,
.template-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--site-shadow-hover) !important;
}

.entrance-icon,
.product-image,
.plugin-icon,
.template-icon {
    border-radius: 8px !important;
    background: rgba(10, 92, 255, .1) !important;
    color: var(--site-primary) !important;
}

.filter-section,
.category-tabs,
.sort-section,
.search-box {
    border-radius: 8px !important;
}

@media (max-width: 1024px) {
    .container,
    .public-container,
    .common-layout {
        max-width: 100% !important;
        padding-left: 18px;
        padding-right: 18px;
    }

    .pt-28,
    .pt-32,
    .pt-36 {
        padding-top: 72px !important;
    }

    .py-20,
    .py-16,
    .md\:py-24 {
        padding-top: 62px !important;
        padding-bottom: 62px !important;
    }
}

@media (max-width: 640px) {
    .container,
    .public-container,
    .common-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1,
    .text-3xl,
    .text-4xl,
    .text-5xl {
        line-height: 1.15 !important;
    }

    .flex.space-x-3,
    .flex.space-x-4,
    .sm\:space-x-4 {
        gap: 10px !important;
    }

    .flex.space-x-3 > :not([hidden]) ~ :not([hidden]),
    .flex.space-x-4 > :not([hidden]) ~ :not([hidden]),
    .sm\:space-x-4 > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0 !important;
    }

    .bg-white.rounded-2xl,
    .bg-white.rounded-xl,
    .feature-card,
    .module-card,
    .card {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    #backToTop {
        right: 16px !important;
        bottom: 16px !important;
    }

    .auth-page > .w-full.h-full {
        min-height: auto;
    }

    .auth-page .w-full.lg\:w-1\/2 {
        min-height: 100vh;
        align-items: flex-start !important;
        padding-top: 46px !important;
        padding-bottom: 46px !important;
    }

    .market-header .header-container {
        height: auto !important;
        min-height: 70px;
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .market-header .header-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }
}
