/* 默认基础字体大小，针对移动端 */
html {
    font-size: 16px;
}

/* 平板设备 (>= 768px) */
@media (min-width: 768px) {
    html {
        font-size: 16.5px;
    }
}

/* 小型桌面设备 (>= 1024px) */
@media (min-width: 1024px) {
    html {
        font-size: 17.5px;
    }
}

/* 大型桌面设备 (>= 1440px) */
@media (min-width: 1440px) {
    html {
        font-size: 19.5px;
    }
}

:root {
    --primary-color: #6457A3;
    --secondary-color: #F2F0F9;
    --text-color: #333;
    --light-text-color: #666;
    --white-color: #fff;
    --border-color: #eee;
    --hover-color: #7d6fbf;
    --gradient-primary: linear-gradient(135deg, #7d6fbf, #6457A3);
}

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

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f9f9f9;
}

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

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

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

ul {
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 15rem;
    gap: 2.5rem;
}

.left-column {
    flex: 1;
}
.right-sidebar {
    width: 15rem;
}

.section {
    padding: 3.75rem 0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3.75rem;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    font-size: 1rem;
    color: var(--light-text-color);
}

.section-title p span {
    padding: 0 4px;
    font-weight: 700;
}

.cta-section {
    padding: 2.5rem 0;
    background: var(--gradient-primary);
    text-align: center;
    color: var(--white-color);
}

.cta-section h2 {
    color: var(--white-color);
}

.cta-section h2::after {
    background-color: var(--white-color);
}

.main-header {
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.logo img {
    height: 3.125rem;
}

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

.nav-list {
    display: flex;
}

.nav-list>li {
    position: relative;
    margin: 0 0.625rem;
}

.nav-list>li>a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.625rem 0;
    font-size: .9rem;
    font-weight: 500;
    position: relative;
}

.nav-list>li>a::after {
    content: '';
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    width: 0;
    height: 0.125rem;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list>li.active>a,
.nav-list>li:hover>a {
    color: var(--primary-color);
}

.nav-list>li:hover>a::after {
    width: 100%;
}

.nav-list>li>a .iconfont {
    font-size: 1.125rem;
    color: #6457a3;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--white-color);
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    padding: 0.625rem 0;
    min-width: 100%;
    z-index: 1001;
    border-top: 2px solid var(--primary-color);
    text-align: center;
}

.nav-list>li:hover .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 0.625rem 20px;
    font-size: .9375rem;
    white-space: nowrap;
}

.submenu li a:hover {
    background-color: var(--secondary-color);
}

.submenu-toggle {
    display: none;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    color: var(--primary-color);
}

.mobile-toggle .icon-menu,
.mobile-toggle .icon-close {
    font-size: 1.5rem;
}

.lang-switcher {
    margin-left: 1.5625rem;
    position: relative;
}

.current-lang {
    cursor: pointer;
    padding: 0.2125rem 0.325rem;
    border: 0.0625rem solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.675rem;
    width: 4.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lang-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white-color);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    overflow: hidden;
    padding: 0 0.375rem;
    text-align: center;
}

.lang-options a {
    display: inline-block;
    width: 100%;
    font-size: 0.675rem;
}

.breadcrumb-section {
    background-color: var(--secondary-color);
    padding: 0.9375rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav a,
.breadcrumb-nav span {
    font-size: .875rem;
    color: var(--light-text-color);
}

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

.breadcrumb-nav .divider {
    margin: 0 0.5rem;
}

.breadcrumb-nav span {
    color: var(--text-color);
}


.footer {
    background-color: #333;
    color: #ccc;
    padding: 3.75rem 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 3fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #444;
}

.footer-col .footer-col-title {
    font-size: 1.125rem;
    color: var(--white-color);
    margin-bottom: 1.25rem;
}

.footer-col ul li {
    margin-bottom: 0.625rem;
}

.footer-col ul li a {
    color: #ccc;
    font-size: .875rem;
}

.footer-col ul li a:hover {
    color: var(--white-color);
    padding-left: 0.3125rem;
}

.footer-contact p {
    font-size: .875rem;
    margin-bottom: 0.9375rem;
}

.footer-contact a.phone {
    font-size: 1.566rem;
    font-weight: bold;
    color: var(--primary-color);
}

.qr-codes {
    display: flex;
    gap: 1.25rem;
}

.qr-code-item {
    text-align: center;
    user-select: none;
    cursor: pointer;
}

.qr-code-item img {
    width: 6.25rem;
    height: 6.25rem;
    margin-bottom: 0.3125rem;
    background: white;
    padding: 0.3125rem;
    border-radius: 0.25rem;
}

.qr-code-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.qr-code-item p {
    font-size: .75rem;
}

.footer-bottom {
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.8125rem;
    color: #888;
}

.friend-links {
    margin-bottom: 0.625rem;
}

.friend-links a {
    margin: 0 0.625rem;
    color: #888;
}

.common-toolbar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1px;
    bottom: constant(safe-area-inset-bottom, 0);
    bottom: env(safe-area-inset-bottom, 0);
    right: constant(safe-area-inset-right, 0);
    right: env(safe-area-inset-right, 0);
}

.toolbar-item {
    position: relative;
    width: 4rem;
    height: 4rem;
    background-color: var(--white-color);
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
}

.toolbar-item:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.toolbar-item:hover .iconfont {
    color: var(--white-color);
}

.toolbar-item .iconfont {
    font-size: 1.65rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.toolbar-item span {
    font-size: .75rem;
}

.toolbar-item .attention {
    position: absolute;
    top: 0.3125rem;
    right: 0.3125rem;
    background-color: #FF5722;
    color: var(--white-color);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-size: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite;
}


.btn-primary  {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 0.625rem 1.5625rem;
	border-radius: 3.125rem;
	font-weight: 500;
	transition: all 0.3s;
	/*border: 2px solid transparent;*/
 }

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(100, 87, 163, 0.3);
    color:var(--white-color);
}
.btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 87, 34, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
    }
}


.toolbar-item-phone .tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.625rem 0.9375rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 0.625rem;
}

.toolbar-item-phone:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.toolbar-item-qr .qr-code-popup {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    padding: 0.9375rem;
    border-radius: 0.5rem;
    box-shadow: 0 0.3125rem 1.25rem rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 0.625rem;
    text-align: center;
    width: 8.75rem;
}

.toolbar-item-qr:hover .qr-code-popup {
    opacity: 1;
    visibility: visible;
}

.qr-code-popup p {
    font-size: 0.8125rem;
    color: var(--text-color);
    margin-top: 0.625rem;
}

.back-to-top {
    text-align: center;
    line-height: 5rem;
}

.article-content img {
    cursor: zoom-in;
    transition: transform 0.2s;
}

.article-content img:hover {
    transform: scale(1.02);
}

.image-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.image-preview.active {
    display: flex;
}

.image-preview .preview-close {
    position: absolute;
    top: 1.25rem;
    right: 1.875rem;
    color: white;
    font-size: 1.875rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.image-preview .preview-close:hover {
    color: #ff4444;
}

.image-preview .preview-swiper {
    width: 100%;
    max-width: 1200px;
    height: 100%;
}

.image-preview .preview-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview .preview-swiper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-preview .swiper-button-prev,
.image-preview .swiper-button-next {
    color: white;
    opacity: 0.8;
}

.image-preview .swiper-button-prev:hover,
.image-preview .swiper-button-next:hover {
    opacity: 1;
}

.image-preview .swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.image-preview .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ffffff;
}

.image-preview .preview-counter {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.125rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3125rem 0.9375rem;
    border-radius: 1.25rem;
    z-index: 10;
    user-select: none;
}

#back-to-top {
    display: none;
}

@media (min-width: 992px) {
    .nav-list>li:hover .submenu {
        display: block;
    }

    .lang-switcher:hover .lang-options {
        display: block;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 2.5rem 0 !important;
    }

    .section-title h2 {
        font-size: 1.75rem !important;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 5rem;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 0.3125rem 0.625rem rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
    }

    .main-header.open .main-nav {
        display: block;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-list>li {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list>li>a {
        padding: 0.9375rem 1.25rem;
        display: flex;
        font-size: 1rem;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-list>li>a::after {
        display: none;
    }

    .nav-list>li.has-submenu>a {
        justify-content: left;
    }

    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        background-color: var(--secondary-color);
        padding-left: 0;
        transform: none;
        min-width: 100%;
        border-radius: 0;
        text-align: left;
    }

    .submenu li a {
        padding-left: 2.5rem;
    }

    .nav-list>li.open .submenu {
        display: block !important;
    }

    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 0;
        width: 3.75rem;
        height: 3.125rem;
        cursor: pointer;
        z-index: 2;
    }

    .submenu-toggle .iconfont {
        font-size: 1rem;
        color: var(--primary-color);
        transition: transform 0.3s ease;
    }

    .nav-list>li.open .submenu-toggle .iconfont {
        transform: rotate(180deg);
    }

    .lang-switcher {
        margin: 1.25rem 1.25rem;
        border: 0.0625rem solid var(--border-color);
        border-radius: 0.25rem;
        position: relative;
    }

    .current-lang {
        padding: 0.9375rem 1.25rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        border-radius: 0;
        width: 100%;
    }

    .current-lang::after {
        content: '\e600';
        font-family: "iconfont" !important;
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .lang-switcher.open .current-lang .icon-down {
        transform: rotate(180deg);
    }

    .lang-switcher:hover .lang-options {
        display: block;
    }

    .lang-options {
        position: static;
        display: none;
        box-shadow: none;
        background-color: var(--secondary-color);
        padding-left: 0;
        transform: none;
        min-width: 100%;
        border-radius: 0;
    }

    .lang-options a {
        padding: 0.625rem 2.5rem;
        display: block;
    }

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

    .footer-col.contact-info {
        grid-column: 1 / -1;
    }

}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.5rem !important;
    }

    .faq-intro h2 {
        font-size: 1.5rem !important;
    }

    .breadcrumb-section {
        padding: 0.625rem 0 !important;
    }
    .current-lang{
        font-size: 1rem;
    }
    
    .lang-options a{
        font-size: 1rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-col.contact-info {
        grid-column: 1 / -1;
    }

    .common-toolbar {
        flex-direction: row;
        width: 100%;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        transform: none;
        background-color: var(--white-color);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        gap: 0;
    }

    .toolbar-item {
        flex: 1;
        width: auto;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .toolbar-item .iconfont {
        font-size: 1.666rem;
    }

    .toolbar-item .attention {
        top: 0.125rem;
        right: 0.625rem;
        width: 1rem;
        height: 1rem;
        font-size: 0.75rem;
    }

    .toolbar-item-qr,
    .back-to-top {
        display: none;
    }

    .toolbar-item-phone .tooltip {
        display: none;
    }
        
    .toolbar-item span {
        font-size: 1rem;
    }
    .image-preview .preview-close{
        font-size: 1rem;
    }
    .image-preview .preview-counter{
        font-size: 1rem;
    }
    .image-preview .swiper-button-prev:after, .image-preview .swiper-button-next:after{
        font-size: 1.35rem;
    }
}