/*
 * 修改说明
 * Author: 缘境 (yvsm@zunyunkeji.com) QQ:316430983 微信：yvsm316
*/
:root {
    --brand-primary: #2563eb;
    --brand-secondary: #06b6d4;
    --brand-accent: #7c3aed;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border-soft: #e2e8f0;
    --shadow-soft: 0 20px 55px rgba(15, 23, 42, 0.1);
    --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.075);
    --shadow-glow: 0 18px 48px rgba(37, 99, 235, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-main);
    background:
        radial-gradient(circle at 8% 4%, rgba(37, 99, 235, 0.1), transparent 30rem),
        radial-gradient(circle at 92% 14%, rgba(6, 182, 212, 0.1), transparent 28rem),
        linear-gradient(180deg, #f8fbff 0%, #f8fafc 42%, #ffffff 100%);
    letter-spacing: 0.01em;
}

::selection {
    background: rgba(37, 99, 235, 0.16);
    color: var(--text-main);
}

.container {
    width: 100%;
    max-width: 1536px;
}

header.sticky {
    height: 76px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom-color: rgba(226, 232, 240, 0.78) !important;
    backdrop-filter: blur(18px);
}

header h1 {
    letter-spacing: -0.03em;
}

header nav a,
#mobile-menu a {
    position: relative;
    font-weight: 500;
}

header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

header nav a:hover::after {
    transform: scaleX(1);
}

section.bg-gradient-to-r.from-primary.to-secondary,
section.bg-gradient-to-r.from-primary\/5.to-secondary\/5 {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.24), transparent 18rem),
        radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.18), transparent 16rem),
        linear-gradient(135deg, #2563eb 0%, #0ea5e9 54%, #06b6d4 100%) !important;
}

section.bg-gradient-to-r.from-primary\/5.to-secondary\/5 {
    color: #ffffff;
}

section.bg-gradient-to-r.from-primary\/5.to-secondary\/5 h1,
section.bg-gradient-to-r.from-primary\/5.to-secondary\/5 p {
    color: #ffffff !important;
}

section.bg-gradient-to-r.from-primary.to-secondary::before,
section.bg-gradient-to-r.from-primary\/5.to-secondary\/5::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
}

section.bg-gradient-to-r.from-primary.to-secondary > .container,
section.bg-gradient-to-r.from-primary\/5.to-secondary\/5 > .container {
    position: relative;
    z-index: 1;
}

section.py-16,
section.py-20,
section.py-12 {
    position: relative;
    scroll-margin-top: 86px;
}

section.py-16:nth-of-type(even),
section.py-20:nth-of-type(even) {
    background-image:
        radial-gradient(circle at 8% 18%, rgba(37, 99, 235, 0.055), transparent 22rem),
        radial-gradient(circle at 92% 68%, rgba(6, 182, 212, 0.055), transparent 24rem);
}

h1,
h2,
h3 {
    letter-spacing: -0.035em;
}

section h2 {
    position: relative;
    display: inline-block;
}

section h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.65rem;
    width: 3rem;
    height: 0.2rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    transform: translateX(-50%);
}

.text-shadow {
    text-shadow: none !important;
}

.bg-light,
.bg-gray-50,
.bg-gray-100 {
    background-color: var(--surface-soft) !important;
}

.bg-white,
.bg-light {
    border-color: rgba(226, 232, 240, 0.82);
}

.rounded-lg,
.rounded-xl,
.rounded-2xl {
    border-radius: 20px !important;
}

.shadow,
.shadow-sm,
.shadow-md,
.shadow-lg {
    box-shadow: var(--shadow-card) !important;
}

.card-hover,
.city-item,
.pagination-item,
.prose .bg-white,
.prose .bg-light {
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, var(--shadow-card);
}

.card-hover {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
}

.card-hover::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), transparent 46%);
    opacity: 0.7;
}

.card-hover > * {
    position: relative;
    z-index: 1;
}

.card-hover:hover,
.city-item:hover,
.pagination-item:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--shadow-soft) !important;
}

[class*="bg-primary/10"] {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12)) !important;
}

.bg-primary,
.hover\:bg-primary\/90:hover {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)) !important;
}

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

.border-primary,
.hover\:border-primary:hover {
    border-color: var(--brand-primary) !important;
}

a.bg-primary,
button.bg-primary,
.inline-block.bg-primary {
    border: 0;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24) !important;
}

a.bg-primary:hover,
button.bg-primary:hover,
.inline-block.bg-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.3) !important;
}

h3 a {
    text-decoration: none;
}

h3 a:hover {
    text-decoration: none;
}

section[id="services"] .card-hover > .h-32,
.city-list + div,
.bg-gray-100.flex.items-center.justify-center,
.h-40.bg-gray-100,
.h-32.bg-gray-50 {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08)),
        #f8fafc !important;
}

.prose {
    line-height: 1.9;
}

.prose h2,
.prose h3,
.prose h4 {
    color: var(--text-main);
}

.prose p,
.prose li {
    color: #475569;
}

.prose img {
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.prose table {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
}

#process {
    background:
        radial-gradient(circle at 16% 16%, rgba(37, 99, 235, 0.08), transparent 26rem),
        radial-gradient(circle at 84% 70%, rgba(124, 58, 237, 0.07), transparent 24rem),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

#process .rounded-\[2rem\] {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.1), transparent 18rem) !important;
    box-shadow: var(--shadow-soft) !important;
}

#process li.card-hover {
    min-height: 15.5rem;
    border-color: rgba(226, 232, 240, 0.72);
}

#process li.card-hover:hover {
    box-shadow: var(--shadow-glow) !important;
}

#process li.card-hover span.bg-primary {
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28) !important;
}

#process li.card-hover:not(:last-child)::after {
    content: "";
    display: none;
}

#back-to-top {
    z-index: 60;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28) !important;
}

footer.bg-dark {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 24rem),
        linear-gradient(135deg, #0f172a 0%, #172033 56%, #111827 100%) !important;
}

footer h4,
footer h3 {
    min-height: 1.75rem;
}

footer ul.space-y-3 > li {
    min-height: 1.5rem;
}

footer .border-gray-800 {
    border-color: rgba(148, 163, 184, 0.16) !important;
}

input,
textarea,
select {
    border-radius: 14px !important;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
}

.province-btn,
.city-item {
    border-radius: 999px !important;
}

.city-item-active {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    header.sticky {
        height: 68px !important;
    }

    header h1 {
        font-size: 1rem !important;
    }

    section.py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .container {
        padding-left: 1.1rem !important;
        padding-right: 1.1rem !important;
    }
}
