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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Segoe UI", sans-serif;
    line-height: 1.5;
    background: #f9fafb;
}

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

button {
    font: inherit;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

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

.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }
.mt-12 { margin-top: 3rem; }
.mr-2 { margin-right: .5rem; }
.mr-3 { margin-right: .75rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }

.h-10 { height: 2.5rem; }
.h-16 { height: 4rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }
.w-10 { width: 2.5rem; }
.w-32 { width: 8rem; }
.w-48 { width: 12rem; }
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-xs { max-width: 20rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-7xl { max-width: 80rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: .25rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }

.border { border: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid; }
.border-b-2 { border-bottom: 2px solid; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-800 { border-color: #1f2937; }
.border-primary { border-color: #165DFF; }
.border-transparent { border-color: transparent; }
.rounded-md { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .5rem; }
.rounded-full { border-radius: 9999px; }

.bg-black { background-color: #000; }
.bg-dark { background-color: #1D2129; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-light { background-color: #F2F3F5; }
.bg-primary { background-color: #165DFF; }
.bg-white { background-color: #fff; }
.bg-opacity-50 { --tw-bg-opacity: .5; background-color: rgb(0 0 0 / var(--tw-bg-opacity)); }
.from-primary { --gradient-from: #165DFF; }
.to-secondary { --gradient-to: #36CFC9; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--gradient-from), var(--gradient-to)); }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-2 { padding-top: .5rem; }
.pt-8 { padding-top: 2rem; }
.pb-1 { padding-bottom: .25rem; }
.pb-3 { padding-bottom: .75rem; }

.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.right-6 { right: 1.5rem; }
.bottom-6 { bottom: 1.5rem; }
.z-50 { z-index: 50; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.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; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-sans { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Segoe UI", sans-serif; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

.text-dark { color: #1D2129; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-green-500 { color: #22c55e; }
.text-primary { color: #165DFF; }
.text-white { color: #fff; }
.opacity-0 { opacity: 0; }
.opacity-80 { opacity: .8; }
.opacity-90 { opacity: .9; }
.opacity-100 { opacity: 1; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

.object-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.text-shadow { text-shadow: 0 2px 4px rgba(0, 0, 0, .1); }
.transition-custom { transition: all .3s cubic-bezier(.4, 0, .2, 1); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(.4, 0, .2, 1); transition-duration: .15s; }
.duration-300 { transition-duration: .3s; }
.transform { transform: translateZ(0); }

.hover\:text-primary:hover { color: #165DFF; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-primary\/90:hover { background-color: rgb(22 93 255 / .9); }
.hover\:bg-dark\/90:hover { background-color: rgb(29 33 41 / .9); }

.tech-hero,
.tech-section {
    position: relative;
    overflow: hidden;
}

.tech-hero {
    background:
        linear-gradient(120deg, #165DFF 0%, #2587ff 46%, #36CFC9 100%);
    background-size: 180% 180%;
    animation: gradientBreath 10s ease-in-out infinite alternate;
    isolation: isolate;
}

.tech-hero::before,
.tech-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 0;
    pointer-events: none;
    background-repeat: repeat-x;
    background-position: 0 100%;
    background-size: 72rem 100%;
    transform: translateZ(0);
    will-change: background-position;
}

.tech-hero::before {
    height: 8.75rem;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath fill='%23c8f4ff' fill-opacity='.34' d='M0 104C200 36 400 36 600 104C800 172 1000 172 1200 104V200H0Z'/%3E%3C/svg%3E");
    opacity: .78;
    animation: heroWaveSlideReverse 26s linear infinite;
}

.tech-hero::after {
    height: 7.25rem;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='fade' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='.70'/%3E%3Cstop offset='.72' stop-color='%23ffffff' stop-opacity='.94'/%3E%3Cstop offset='1' stop-color='%23ffffff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23fade)' d='M0 88C150 34 450 34 600 88C750 142 1050 142 1200 88V200H0Z'/%3E%3C/svg%3E");
    opacity: 1;
    animation: heroWaveSlide 20s linear infinite;
}

.tech-section {
    background:
        linear-gradient(120deg, #ffffff 0%, #f7fbff 48%, #ffffff 100%);
}

.tech-hero > .container {
    position: relative;
    z-index: 1;
}

.contact-card {
    border: 1px solid rgb(22 93 255 / .08);
    background: rgb(255 255 255 / .96);
    box-shadow: 0 18px 45px rgb(25 45 90 / .08);
    backdrop-filter: blur(10px);
}

@keyframes gradientBreath {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes heroWaveSlide {
    0% { background-position-x: 0; }
    100% { background-position-x: -72rem; }
}

@keyframes heroWaveSlideReverse {
    0% { background-position-x: -72rem; }
    100% { background-position-x: 0; }
}

.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.15em;
}

.icon-hero {
    width: 4.8rem;
    height: 4.8rem;
    stroke-width: 1.5;
}

.social-links {
    display: flex;
    gap: .75rem;
}

.social-link {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #2b3444;
    border-radius: 9999px;
    color: #9ca3af;
    background: #222936;
    transition: all .25s ease;
}

.social-link:hover {
    color: #fff;
    border-color: #165DFF;
    background: #165DFF;
    transform: translateY(-2px);
}

.qr-channel-title {
    display: inline-flex;
    align-items: center;
    margin-bottom: .75rem;
    color: #1D2129;
    font-size: 1rem;
    font-weight: 700;
}

.qr-preview {
    position: relative;
    overflow: hidden;
    border: 0;
    color: inherit;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);
}

.qr-preview img {
    object-fit: contain;
    background: #fff;
    transition: transform .25s ease;
}

.qr-preview span {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding: .45rem .6rem;
    border-radius: .375rem;
    color: #fff;
    font-size: .875rem;
    background: rgb(29 33 41 / .82);
    opacity: 0;
    transform: translateY(.4rem);
    transition: all .25s ease;
}

.qr-preview:hover img {
    transform: scale(1.03);
}

.qr-preview:hover span,
.qr-preview:focus-visible span {
    opacity: 1;
    transform: translateY(0);
}

.qr-preview:focus-visible {
    outline: 2px solid #165DFF;
    outline-offset: 3px;
}

.modal-image {
    width: min(72vw, 20rem);
    max-height: 72vh;
    object-fit: contain;
}

@media (min-width: 640px) {
    .sm\:px-3 { padding-left: .75rem; padding-right: .75rem; }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
