/* 全局样式 */
:root {
    --page-desktop-width: 1200px;
    --header-desktop-width: var(--page-desktop-width);
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --text-color: #26364a;
    --text-light: #617086;
    --surface-color: #ffffff;
    --surface-soft: #f5f9ff;
    --border-color: rgba(120, 155, 201, 0.18);
    --shadow-soft: 0 10px 30px rgba(16, 61, 120, 0.08);
    --shadow-card: 0 18px 45px rgba(10, 57, 117, 0.1);
    --radius-lg: 22px;
    --accent-gold: #d3a85f;
    --accent-gold-soft: rgba(211, 168, 95, 0.28);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

::selection {
    background: rgba(0, 102, 204, 0.18);
    color: #0d2f5b;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(180deg, #f9fbff 0%, #f3f7fc 100%);
    min-width: 0;
}

.container {
    width: 100%;
    max-width: var(--page-desktop-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

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

/* 头部导航 */
.header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(214, 226, 241, 0.9);
    box-shadow: 0 10px 26px rgba(11, 43, 91, 0.08);
    position: relative;
    z-index: 1000;
}

.header .container {
    width: 100%;
    max-width: var(--header-desktop-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 52px;
    width: auto;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.logo:hover img {
    transform: translateY(-1px);
    filter: drop-shadow(0 6px 14px rgba(0, 102, 204, 0.18));
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 36px;
}

.nav-item a {
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #48a3ff);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-item a:hover {
    color: var(--primary-color);
}

.nav-item a:hover::after {
    width: 100%;
    left: 0;
}

.nav-item.active a {
    color: var(--primary-color);
}

.nav-item.active a::after {
    left: 0;
    width: 100%;
}

.language-switcher {
    margin-left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-link {
    font-size: 0.9rem;
    color: #666;
}

.lang-link.active {
    color: var(--primary-color);
    font-weight: bold;
}

.lang-separator {
    color: #ccc;
}

.nav-toggle {
    display: none;
    background: rgba(0, 102, 204, 0.08);
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
}

/* 首页轮播 */
.hero {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1920 / 600;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(10, 40, 88, 0.18);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 36, 76, 0.12), rgba(3, 19, 41, 0.28));
    pointer-events: none;
    z-index: 2;
}

.hero-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-overlay {
    position: absolute;
    left: 8%;
    bottom: 92px;
    z-index: 6;
    max-width: min(700px, 78%);
    color: #fff;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(5, 26, 52, 0.42);
    backdrop-filter: blur(8px);
    margin-bottom: 14px;
}

.hero-overlay-title {
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    line-height: 1.25;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 14px 28px rgba(1, 8, 18, 0.35);
}

.hero-overlay-subtitle {
    margin-top: 14px;
    max-width: 640px;
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    line-height: 1.85;
    color: rgba(236, 244, 255, 0.96);
}

.hero-overlay-meta {
    margin-top: 16px;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(3, 22, 45, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.hero-slide-index {
    font-size: 1rem;
    font-weight: 700;
    color: #ffdba1;
}

.hero-slide-total {
    font-size: 0.86rem;
    color: rgba(233, 242, 255, 0.82);
}

.hero-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 6;
}

.hero-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #0f72d8, #8ac4ff 55%, #d3a85f);
    box-shadow: 0 0 16px rgba(134, 198, 255, 0.45);
}

.hero-overlay .hero-badge,
.hero-overlay .hero-overlay-title,
.hero-overlay .hero-overlay-subtitle,
.hero-overlay .hero-overlay-meta {
    opacity: 0;
    transform: translateY(12px);
}

.hero-swiper[data-overlay-ready="true"] .hero-overlay .hero-badge,
.hero-swiper[data-overlay-ready="true"] .hero-overlay .hero-overlay-title,
.hero-swiper[data-overlay-ready="true"] .hero-overlay .hero-overlay-subtitle,
.hero-swiper[data-overlay-ready="true"] .hero-overlay .hero-overlay-meta {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-swiper[data-overlay-ready="true"] .hero-overlay .hero-overlay-title {
    transition-delay: 80ms;
}

.hero-swiper[data-overlay-ready="true"] .hero-overlay .hero-overlay-subtitle {
    transition-delay: 140ms;
}

.hero-swiper[data-overlay-ready="true"] .hero-overlay .hero-overlay-meta {
    transition-delay: 200ms;
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.swiper-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    filter: none;
    transition: opacity 0.85s ease, transform 0.95s ease;
    background-color: transparent;
}

.swiper-slide.active {
    opacity: 1;
    transform: scale(1);
    filter: none;
    z-index: 1;
}

.hero-swiper.gsap-enhanced .swiper-slide {
    transition: none !important;
    opacity: 1;
    transform: none !important;
}

.hero-swiper.gsap-enhanced .swiper-slide.active {
    transform: none !important;
}

.hero-swiper[data-slide-direction="next"] .swiper-slide.active {
    animation: heroSlideInNext 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-swiper[data-slide-direction="prev"] .swiper-slide.active {
    animation: heroSlideInPrev 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero-swiper.gsap-enhanced[data-slide-direction="next"] .swiper-slide.active,
.hero-swiper.gsap-enhanced[data-slide-direction="prev"] .swiper-slide.active,
.hero-swiper.gsap-enhanced .swiper-slide.leaving-next,
.hero-swiper.gsap-enhanced .swiper-slide.leaving-prev {
    animation: none !important;
}

.swiper-slide.leaving-next,
.swiper-slide.leaving-prev {
    z-index: 0;
    opacity: 0;
}

.swiper-slide.leaving-next {
    animation: heroSlideOutNext 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) both;
}

.swiper-slide.leaving-prev {
    animation: heroSlideOutPrev 0.9s cubic-bezier(0.45, 0.05, 0.55, 0.95) both;
}

.swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(1.05);
    transition: transform 0.2s linear;
    filter: none;
}

.swiper-slide.active img {
    animation: heroKenBurns 5.6s ease-out both;
}

.hero-swiper.gsap-enhanced .swiper-slide img,
.hero-swiper.gsap-enhanced .swiper-slide.active img {
    animation: none !important;
    transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(1.03);
}

@keyframes heroKenBurns {
    0% {
        transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(1.08);
    }
    100% {
        transform: translate3d(0, var(--hero-parallax-y, 0px), 0) scale(1.02);
    }
}

@keyframes heroSlideInNext {
    0% {
        transform: translateX(24px) scale(1.06);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes heroSlideInPrev {
    0% {
        transform: translateX(-24px) scale(1.06);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes heroSlideOutNext {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-18px) scale(0.985);
        opacity: 0;
    }
}

@keyframes heroSlideOutPrev {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(18px) scale(0.985);
        opacity: 0;
    }
}

.swiper-pagination {
    position: absolute;
    left: 0;
    bottom: 24px;
    z-index: 5;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.55);
    opacity: 1;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #fff;
    width: 30px;
    border-radius: 999px;
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 0 0 rgba(121, 195, 255, 0.45), 0 0 24px rgba(86, 171, 255, 0.25);
    animation: buttonGlowBreath 2.8s ease-in-out infinite;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: translateY(-50%) scale(1.06);
    background: rgba(255, 255, 255, 0.22);
    animation-play-state: paused;
}

@keyframes buttonGlowBreath {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(121, 195, 255, 0.26), 0 0 20px rgba(86, 171, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 0 9px rgba(121, 195, 255, 0.12), 0 0 34px rgba(86, 171, 255, 0.4);
    }
}

.swiper-button-prev {
    left: 24px;
}

.swiper-button-next {
    right: 24px;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 1.5rem;
    font-weight: bold;
}

.swiper-button-prev:after {
    content: '‹';
}

.swiper-button-next:after {
    content: '›';
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, #11233d 0%, #1e395c 55%, #274a73 100%);
    color: #ecf0f1;
    padding: 56px 0 24px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(91, 167, 255, 0.2), transparent 35%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
    border-left: 4px solid #4ba7ff;
    padding-left: 10px;
    position: relative;
}

.friend-links {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.links-scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-x: visible;
    padding: 10px 0;
}

.links-scroll a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.links-scroll a:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(123, 191, 255, 0.45);
}

.links-scroll img {
    height: 40px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.links-scroll img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.footer-section p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section i {
    width: 20px;
    color: #67b5ff;
}

.qr-codes {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.qr-item img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.qr-item p {
    font-size: 0.9rem;
    justify-content: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    color: rgba(225, 234, 244, 0.72);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-list {
        gap: 24px;
    }

    .hero {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 2732 / 1534;
    }

    .hero,
    .hero-swiper,
    .swiper-wrapper,
    .swiper-slide {
        background-color: #081a34;
    }

    .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 768px) {
    body {
        min-width: 0;
    }

    .hero {
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 2732 / 1534;
        box-shadow: 0 12px 30px rgba(10, 40, 88, 0.16);
    }

    .hero,
    .hero-swiper,
    .swiper-wrapper,
    .swiper-slide {
        background-color: #081a34;
    }

    .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 20px;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-overlay {
        left: 6%;
        right: 6%;
        max-width: none;
        bottom: 78px;
    }

    .hero-overlay-subtitle {
        line-height: 1.7;
    }
}

@media (max-width: 576px) {
    .hero {
        aspect-ratio: 2732 / 1534;
    }

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

    .hero-overlay {
        bottom: 70px;
    }

    .hero-overlay-subtitle {
        display: none;
    }
}

/* 公共页面样式 */
.page-banner {
    background: url('../images/herobj.png') center center no-repeat;
    background-size: cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(12, 49, 106, 0.12);
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 31, 62, 0.42), rgba(4, 17, 38, 0.58));
}

.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.18), transparent 28%);
}

.page-title {
    position: relative;
    z-index: 1;
    font-size: 2.45rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

/* 微动效与入场层次 */
.motion-ready .reveal-up {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
    filter: blur(1px);
    transition: opacity 0.65s ease, transform 0.65s ease, filter 0.65s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .motion-ready .reveal-up,
    .motion-ready .reveal-up.is-visible {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .swiper-slide img {
        transform: none !important;
    }

    .swiper-button-prev,
    .swiper-button-next {
        animation: none !important;
    }
}

.breadcrumb {
    background-color: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #0066cc;
}

.breadcrumb .separator {
    color: #999;
}

/* 业务详情页样式 */
.business-detail {
    padding: 50px 0;
}

.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.detail-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.detail-content h2 {
    color: #0066cc;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-content h3 {
    color: #333;
    margin: 25px 0 15px;
}

.detail-content p {
    margin-bottom: 15px;
    color: #555;
}

.detail-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.detail-content li {
    margin-bottom: 8px;
    color: #555;
}

.detail-image {
    margin: 30px 0;
    text-align: center;
}

.detail-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #0066cc;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    color: #004d99;
}

@media (max-width: 768px) {
    .detail-content {
        padding: 25px;
    }

    .page-title {
        font-size: 1.8rem;
    }
}