/**
 * Qi Ling - Main CSS
 * 使用系统字体
 */

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-dark: #1f2937;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-900: #111827;

    /* Typography - 系统字体*/
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --section-padding: 50px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background: #fff;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
}

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

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.bg-light {
    background: var(--color-gray-100);
}

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

.text-muted {
    color: var(--color-gray-500);
}

/* ===== Grid System ===== */
.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.grid-cols-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4,
    .grid-cols-6 {
        grid-template-columns: 1fr;
    }

    :root {
        --section-padding: 50px;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--color-primary);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.admin-bar .site-header {
    top: var(--wp-admin--admin-bar--height, 32px);
}

/* Transparent Header for Homepage */
.site-header.header-transparent {
    position: sticky;
    top: 0;
    background: transparent;
    box-shadow: none;
    margin-bottom: -80px;
    /* Pull content up by header height */
}

.admin-bar .site-header.header-transparent {
    top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 992px) {
    .site-header.header-transparent {
        margin-bottom: -150px;
        /* Increase pull for mobile where header might wrap/be taller */
    }

    body.has-transparent-header .module-banner {
        padding-top: 150px !important;
        /* Match the new header height pull */
        padding-bottom: 150px !important;
        /* Balance vertical centering */
        box-sizing: border-box;
        /* Ensure padding doesn't break width */
    }
}

.site-header.header-transparent .primary-navigation>ul>li>a,
.site-header.header-transparent .site-title-link,
.site-header.header-transparent .search-toggle,
.site-header.header-transparent .header-phone {
    color: #fff;
}

.site-header.header-transparent .mobile-menu-toggle span {
    background: #fff;
}

.site-header.header-transparent.header-scrolled {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header.header-transparent.header-scrolled .primary-navigation>ul>li>a,
.site-header.header-transparent.header-scrolled .site-title-link,
.site-header.header-transparent.header-scrolled .search-toggle {
    color: #334155;
}

.site-header.header-transparent.header-scrolled .header-phone {
    color: var(--color-primary);
}

.site-header.header-transparent.header-scrolled .mobile-menu-toggle span {
    background: #334155;
}



.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-branding img,
.site-branding svg.custom-logo {
    max-height: 60px;
    width: auto;
}

.site-title-link {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo Dark Mode Override */
.dark-mode .site-header.header-scrolled .site-title-link,
.dark-mode body:not(.home) .site-title-link,
[data-theme="dark"] .site-header.header-scrolled .site-title-link,
[data-theme="dark"] body:not(.home) .site-title-link {
    background: none;
    -webkit-text-fill-color: initial;
    color: #ffffff;
}

.site-header .primary-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.site-header .primary-navigation>ul {
    display: flex;
    list-style: none;
    margin: 0 0 0 32px;
    padding: 0;
    gap: 6px;
}

.site-header .primary-navigation li {
    position: relative;
}

.site-header .primary-navigation>ul>li>a {
    position: relative;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 1;
}

.site-header .primary-navigation>ul>li>a:hover,
.site-header .primary-navigation li.current-menu-item>a,
.site-header .primary-navigation li.current_page_item>a {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
}

/* Dropdown Menu - Premium Style */
.site-header .primary-navigation li ul {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header .primary-navigation li ul::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #fff;
}

.site-header .primary-navigation li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.site-header .primary-navigation li ul li a {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.site-header .primary-navigation li ul li a:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.08) 100%);
    color: var(--color-primary);
    transform: translateX(5px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search .search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-dark);
    border-radius: 50%;
    transition: all 0.2s;
}

.header-search .search-toggle:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

/* Plugin Compatibility: Qiling Shop Icons */
.header-vip-btn,
.header-cart-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    border-radius: 50%;
    transition: all 0.3s;
    padding: 0;
}

.header-vip-btn:hover,
.header-cart-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Transparent Header Support */
.header-transparent:not(.header-scrolled) .header-vip-btn,
.header-transparent:not(.header-scrolled) .header-cart-btn {
    color: #fff;
}

.header-transparent:not(.header-scrolled) .header-vip-btn:hover,
.header-transparent:not(.header-scrolled) .header-cart-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Icon Sizing */
.header-vip-btn i,
.header-vip-btn svg,
.header-vip-btn .qs-icon,
.header-cart-btn svg,
.header-cart-btn i,
.header-cart-btn .qs-icon {
    font-size: 18px;
    width: 1em;
    height: 1em;
    margin: 0;
    /* Remove any margins */
    display: block;
    /* Ensure block for flex alignment */
}

.cart-icon-text,
.vip-icon-text {
    font-size: 18px;
    display: inline-block;
    /* Ensure it respects line-height/alignment */
    margin: 0;
}

/* Adjust margin for container if needed */
.qls-header-vip,
.qls-header-cart {
    display: flex;
    align-items: center;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    border-radius: 20px;
}

.header-phone svg {
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 992px) {
    .primary-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .btn-header {
        display: none;
    }

    .header-phone span {
        display: none;
    }

    .header-phone {
        padding: 10px;
        border-radius: 50%;
    }

    .header-flex {
        gap: 15px;
    }

    /* 移动端顶部菜单栏图标控制 */
    /* Mobile Header Icons Visibility Control */

    /* Search */
    body.mobile-hide-search .header-search {
        display: none !important;
    }

    /* Phone */
    body.mobile-hide-phone .header-phone {
        display: none !important;
    }

    /* Login / User */
    body.mobile-hide-login .header-login,
    body.mobile-hide-login .header-user-menu {
        display: none !important;
    }

    /* Translate */
    body.mobile-hide-translate .header-translate {
        display: none !important;
    }

    /* Darkmode */
    body.mobile-hide-darkmode .header-darkmode {
        display: none !important;
    }

    /* Plugin: VIP (QilingShop) */
    body.mobile-hide-vip .header-vip,
    body.mobile-hide-vip .qls-header-vip {
        display: none !important;
    }

    /* Plugin: Cart (QilingShop) */
    body.mobile-hide-cart .header-cart,
    body.mobile-hide-cart .qls-header-cart {
        display: none !important;
    }

    /* Plugin: History (ArtPlayer) */
    body.mobile-hide-history .header-history {
        display: none !important;
    }
}

.mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid var(--color-gray-200);
    padding: 20px 0;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--color-gray-100);
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: var(--color-dark);
}

/* ===== Section Header ===== */
.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--color-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    margin: 0;
}

/* ===== Banner ===== */
.module-banner {
    position: relative;
}

.banner-height-full {
    min-height: 100vh;
}

.banner-height-large {
    min-height: 80vh;
}

.banner-height-medium {
    min-height: 60vh;
}

/* Fix Banner content when Header is transparent */
body.has-transparent-header .module-banner {
    padding-top: 80px;
    /* Push content down by header height */
    padding-bottom: 80px;
    /* Balance vertical centering */
    box-sizing: border-box;
}

.banner-single,
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    position: relative;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 40px 20px;
}

.banner-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 30px;
}

.banner-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.banner-buttons .btn {
    font-weight: 600;
}

@media (max-width: 768px) {
    .banner-title {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .banner-flex {
        flex-direction: column !important;
        text-align: center;
    }
}

/* ===== Swiper ===== */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #fff;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
}

/* ===== News/Products/Cases Cards ===== */
.news-card,
.product-card,
.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover,
.product-card:hover,
.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-thumb,
.product-thumb,
.case-thumb {
    display: block;
    position: relative;
    overflow: hidden;
}

.news-thumb img,
.product-thumb img,
.case-thumb img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover img,
.product-card:hover img,
.case-card:hover img {
    transform: scale(1.05);
}

.news-content,
.product-info {
    padding: 20px;
}

.news-date {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.news-title,
.product-title,
.case-title {
    font-size: 1.125rem;
    margin: 10px 0;
}

.news-title a,
.product-title a,
.case-title a {
    color: var(--color-dark);
}

.news-title a:hover,
.product-title a:hover,
.case-title a:hover {
    color: var(--color-primary);
}

.news-excerpt,
.product-excerpt,
.case-excerpt {
    color: var(--color-gray-600);
    font-size: 0.9rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Case Overlay */
.case-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-view {
    color: #fff;
    font-weight: 500;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-gray-900);
    color: #fff;
}

.footer-widgets {
    padding: 60px 0;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-widgets-grid {
        grid-template-columns: 1fr;
    }
}

.footer-widget-area h3 {
    font-size: 1.125rem;
    margin: 0 0 20px;
}

.footer-widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget-area li {
    margin-bottom: 2px;
}

.footer-widget-area a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-widget-area a:hover {
    color: #fff;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-contact-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1px;
}

.footer-contact-item-address {
    align-items: flex-start;
}

.footer-contact-icon {
    font-size: 1.2em;
    line-height: 1;
}

.footer-contact-widgets {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.footer-contact-widgets .footer-contact-widget-title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact-widgets .widget {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-widgets a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact-widgets a:hover {
    color: #fff;
}

.footer-contact-widgets ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-contact-widgets p {
    margin: 0 0 8px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-copyright a {
    color: inherit;
}

.footer-copyright a:hover {
    color: #fff;
}

.footer-filing {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
}

.footer-filing a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-filing a:hover {
    color: #fff;
}

.footer-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}



.float-widgets {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-widget {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.float-widget:hover {
    transform: scale(1.1);
}

.widget-icon {
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.widget-icon .qs-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.widget-popup {
    display: none;
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    min-width: 150px;
}

/* 添加透明连接区域让鼠标能从图标移到弹出层 */
.widget-popup::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px;
    width: 25px;
    height: 100%;
    background: transparent;
}

/* 鼠标悬停时显示弹出层 */
.float-widget:hover .widget-popup {
    display: block;
}

.widget-popup-qr {
    text-align: center;
}

.widget-popup-qr img {
    max-width: 150px;
    display: block;
    margin-bottom: 10px;
}

.popup-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-bottom: 5px;
}

.popup-content {
    font-weight: 600;
    color: var(--color-dark);
}

.widget-totop {
    background: var(--color-gray-600);
}

/* ===== Forms ===== */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-row {
    margin-bottom: 15px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* ===== Contact Grid ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-grid.info-only {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
}

.contact-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--color-gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail strong {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-bottom: 3px;
}

.contact-detail a,
.contact-detail span {
    color: var(--color-dark);
    font-weight: 500;
}

/* ===== Pagination ===== */
.pagination-nav {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-nav .page-numbers {
    padding: 8px 14px;
    background: var(--color-gray-100);
    border-radius: 6px;
    color: var(--color-dark);
}

.pagination-nav .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
}

/* ===== Entry Content ===== */
.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.entry-content h2 {
    margin-top: 40px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content img {
    border-radius: 8px;
}

/* ===== Utilities ===== */
.mt-lg {
    margin-top: 40px;
}

.mb-lg {
    margin-bottom: 40px;
}

/* ===== Tab Buttons ===== */
.tab-btn {
    transition: all 0.3s;
}

.tab-btn:hover {
    background: var(--color-primary) !important;
    color: #fff !important;
}

/* ===== Responsive Typography ===== */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* ===== Simple Fade Animation (替代 AOS) ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== Screen Reader Text ===== */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Header Search ===== */
.header-search {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.search-toggle:hover {
    background: var(--color-gray-100);
}


/* Header Phone styles defined above */

@media (max-width: 768px) {
    .header-phone span {
        display: none;
    }

    .header-phone {
        padding: 8px;
        border-radius: 50%;
    }
}


/* ===== Search Overlay ===== */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-inner {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
}

.search-overlay .search-form {
    display: flex;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.search-overlay .search-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 1.1rem;
    outline: none;
    min-width: 0;
}

.search-overlay .search-form button {
    padding: 18px 25px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.search-overlay .search-form button:hover {
    opacity: 0.9;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
}


@media (max-width: 768px) {

    /* Header Mobile */
    .site-header {
        padding: 0;
    }

    .header-inner {
        padding: 10px 0;
    }

    .header-actions {
        gap: 10px;
    }

    .custom-logo {
        max-height: 40px !important;
    }

    /* Search Mobile */
    .search-overlay .search-form {
        flex-direction: column;
        border-radius: 16px;
    }

    .search-overlay .search-form input {
        padding: 15px 20px;
        font-size: 1rem;
        border-bottom: 1px solid #eee;
    }

    .search-overlay .search-form button {
        padding: 15px 20px;
        border-radius: 0 0 16px 16px;
    }

    .search-close {
        top: -50px;
        font-size: 32px;
    }

    /* Page Header Mobile */
    .page-header {
        padding: 80px 0 40px !important;
    }

    .page-header h1 {
        font-size: 1.75rem !important;
    }

    /* Container Mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Section Padding Mobile */
    .section-padding {
        padding: 40px 0;
    }

    /* Footer Mobile */
    .footer-widgets-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    /* Float Widget Mobile */
    .float-widget {
        transform: translateY(-50%) scale(0.9);
        right: -5px;
    }

    /* Banner Mobile */
    .banner-content h2 {
        font-size: 1.75rem !important;
    }

    .banner-content p {
        font-size: 1rem !important;
    }

    /* Cards Mobile */
    .service-card,
    .feature-card,
    .product-card,
    .news-item {
        padding: 20px;
    }

    /* News Item Mobile */
    .news-item {
        flex-direction: column !important;
    }

    .news-item .news-image {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Form Mobile */
    .contact-form {
        padding: 20px !important;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px 14px !important;
    }
}

/* ===== Header Login Button ===== */
.header-login,
.header-user-menu {
    margin-left: 15px;
}

.header-login-btn,
.header-user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.header-login-btn:hover,
.header-user-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

/* 移动端登录按钮：只显示图标，隐藏文字 */
@media (max-width: 768px) {
    .header-login-btn span {
        display: none;
    }

    .header-login-btn {
        padding: 8px;
        border-radius: 50%;
    }
}

.header-user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #334155;
    text-decoration: none;
    transition: background 0.2s;
}

.user-dropdown a:hover {
    background: #f1f5f9;
}

/* ===== Login Modal ===== */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 9998;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 9999;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.login-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.login-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s;
}

.login-modal-close:hover {
    color: #64748b;
}




/* ========================================
   视频封面样式
   ======================================== */

/* 视频封面容器 */
.post-video-cover {
    position: relative;
    overflow: hidden;
    background: #1e293b;
}

.post-video-cover .video-cover-link {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.post-video-cover .video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* 视频元素 - 默认显示，作为封面的背景 */
.post-video-cover .video-cover-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* 播放按钮overlay */
.post-video-cover .video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.post-video-cover .video-play-overlay .play-icon {
    width: 56px;
    height: 56px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

/* 悬停后的overlay链接 */
.post-video-cover .video-cover-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumb {
    position: relative;
    overflow: hidden;
}

.post-video-corner-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 6;
    display: flex;
    gap: 6px;
    align-items: center;
}

.post-video-corner-badges .post-badge {
    margin-left: 0;
}

/* 悬停播放效果 - 隐藏poster图片和播放按钮 */
.post-video-cover:hover .video-poster,
.post-video-cover.is-playing .video-poster {
    opacity: 0;
}

.post-video-cover:hover .video-cover-link,
.post-video-cover.is-playing .video-cover-link {
    opacity: 0;
    pointer-events: none;
}

.post-video-cover:hover .video-play-overlay,
.post-video-cover.is-playing .video-play-overlay {
    opacity: 0;
}

/* 视频标签样式 */
.post-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 8px;
}

.post-badge-video {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
}

.post-badge-video svg {
    width: 12px;
    height: 12px;
}

.post-badge-app {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
}

.post-badge-free {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
}

.post-badge-vip {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
}

.post-badge-album {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #fff;
    padding: 3px 8px;
    border-radius: 20px;
}

/* 分类标签样式 */
.post-category-tag {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.post-category-tag:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    transform: translateY(-1px);
}

/* 分类页面元信息 */
.post-meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
}

.post-meta-info .post-date,
.post-meta-info .post-author {
    display: inline-flex;
    align-items: center;
}

/* 暗黑模式分类标签 */
[data-theme="dark"] .post-category-tag {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

[data-theme="dark"] .post-meta-info {
    color: #94a3b8;
}

/* 文章内视频样式限制 */
.entry-content video,
.post-content-area video,
.single-post .entry-content video {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 600px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #000;
}

/* iframe 视频容器（B站、优酷等） */
.entry-content iframe[src*="bilibili"],
.entry-content iframe[src*="youku"],
.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="vimeo"],
.post-content-area iframe[src*="bilibili"],
.post-content-area iframe[src*="youku"],
.post-content-area iframe[src*="youtube"],
.post-content-area iframe[src*="vimeo"] {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    margin: 20px 0;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* WordPress 默认视频播放器样式 */
.wp-video,
.mejs-container {
    max-width: 100% !important;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.mejs-container .mejs-controls {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* ========================================
   视频封面暗黑模式
   ======================================== */
html.dark-mode .post-video-cover {
    background: #0f172a;
}

html.dark-mode .post-badge-video {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

html.dark-mode .entry-content video,
html.dark-mode .post-content-area video,
html.dark-mode .single-post .entry-content video {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html.dark-mode .entry-content iframe,
html.dark-mode .post-content-area iframe {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

html.dark-mode .wp-video,
html.dark-mode .mejs-container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ========================================
   视频封面响应式
   ======================================== */
@media (max-width: 768px) {
    .post-video-cover .video-play-overlay .play-icon {
        width: 40px;
        height: 40px;
    }

    .post-badge {
        padding: 2px 6px;
        font-size: 0.7rem;
        margin-left: 6px;
    }

    .entry-content video,
    .post-content-area video {
        max-height: 400px;
        border-radius: 8px;
        margin: 15px 0;
    }

    .entry-content iframe,
    .post-content-area iframe {
        border-radius: 8px;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .post-video-cover .video-play-overlay .play-icon {
        width: 32px;
        height: 32px;
    }

    .entry-content video,
    .post-content-area video {
        max-height: 280px;
    }
}

/* ========================================
   Banner 模块响应式优化 (Migrated from inline)
   ======================================== */

/* 笔记本电脑优化 (13-14寸) */
@media (max-width: 1440px) and (min-width: 769px) {

    .banner-image-text .banner-media img,
    .banner-image-text .banner-media video {
        max-width: 85%;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 768px) {

    .banner-image-text .banner-flex {
        flex-direction: column !important;
        text-align: center;
    }

    .banner-image-text .banner-title {
        font-size: 2rem !important;
    }

    .banner-image-text .banner-media {
        margin-top: 30px;
    }

    /* 轮播图模式下的响应式：变成滚动或堆叠 */
    .banner-slider .banner-stats-bar {
        width: 94% !important;
        bottom: 20px !important;
        padding: 16px !important;
        flex-wrap: wrap;
        gap: 15px;
    }

    /* 图文模式下的响应式 */
    .banner-image-text .banner-stats-bar {
        flex-wrap: wrap;
    }

    .stat-item {
        min-width: 40%;
    }

    .stat-divider {
        display: none;
    }
}

/* ========================================
/* ========================================
   MERGED FROM dynamic-components.css
   ======================================== */

/* ========================================
   原生滚动动画样式（替代 AOS 库）
   ======================================== */
[data-aos] {
    opacity: 0;
    transition: transform .6s ease-out, opacity .6s ease-out
}

[data-aos].aos-animate {
    opacity: 1
}

[data-aos="fade-up"] {
    transform: translateY(30px)
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0)
}

[data-aos="fade-down"] {
    transform: translateY(-30px)
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0)
}

[data-aos="fade-left"] {
    transform: translateX(30px)
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0)
}

[data-aos="fade-right"] {
    transform: translateX(-30px)
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0)
}

[data-aos="zoom-in"] {
    transform: scale(.9)
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1)
}

/* ========================================
   暗黑模式切换按钮
   ======================================== */
.darkmode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    border-radius: 50%;
    transition: all 0.3s;
}

.darkmode-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.header-transparent:not(.header-scrolled) .darkmode-toggle {
    color: #fff;
}

.header-transparent:not(.header-scrolled) .darkmode-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   暗黑模式颜色变量 & 全局覆盖
   ======================================== */
html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

html.dark-mode {
    --dm-bg: #0f172a;
    --dm-bg-secondary: #1e293b;
    --dm-bg-card: #1e293b;
    --dm-text: #e2e8f0;
    --dm-text-muted: #94a3b8;
    --dm-border: #334155;
}

html.dark-mode body {
    background-color: var(--dm-bg);
    color: var(--dm-text);
}

/* Header */
html.dark-mode .site-header {
    background: var(--dm-bg-secondary) !important;
    border-bottom-color: var(--dm-border);
}

html.dark-mode .site-header.header-transparent:not(.header-scrolled) {
    background: transparent !important;
}

html.dark-mode .site-header.header-scrolled {
    background: var(--dm-bg-secondary) !important;
}

html.dark-mode .primary-navigation>ul>li>a,
html.dark-mode .site-title-link,
html.dark-mode .search-toggle,
html.dark-mode .darkmode-toggle {
    color: var(--dm-text);
}

html.dark-mode .mobile-menu-toggle span {
    background: var(--dm-text);
}

html.dark-mode .user-dropdown,
html.dark-mode .mobile-menu {
    background: var(--dm-bg-card);
}

html.dark-mode .user-dropdown a {
    color: var(--dm-text);
}

html.dark-mode .dropdown-header {
    background: var(--dm-bg);
}

html.dark-mode .dropdown-user-info strong {
    color: var(--dm-text);
}

html.dark-mode .dropdown-divider {
    background: var(--dm-border);
}

/* Main content */
html.dark-mode .site-main,
html.dark-mode .page-content,
html.dark-mode .account-page {
    background: var(--dm-bg);
}

/* Cards and sections */
html.dark-mode .about-intro,
html.dark-mode .about-tabs-wrapper,
html.dark-mode .account-section,
html.dark-mode .account-nav,
html.dark-mode .about-culture-card,
html.dark-mode .about-gallery-item,
html.dark-mode .team-member,
html.dark-mode .timeline-content,
html.dark-mode .news-card,
html.dark-mode .product-card,
html.dark-mode .case-card,
html.dark-mode .faq-item,
html.dark-mode .pricing-card,
html.dark-mode .module-services .service-item,
html.dark-mode .module-features .feature-item,
html.dark-mode .module-contact form,
html.dark-mode .search-overlay-inner {
    background: var(--dm-bg-card) !important;
    color: var(--dm-text);
}

/* Text colors */
html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6,
html.dark-mode .section-title,
html.dark-mode .about-tab-btn,
html.dark-mode .account-nav-item,
html.dark-mode .culture-title {
    color: var(--dm-text);
}

html.dark-mode p,
html.dark-mode .entry-content,
html.dark-mode .culture-desc,
html.dark-mode .form-hint {
    color: var(--dm-text-muted);
}

/* Form inputs */
html.dark-mode input,
html.dark-mode textarea,
html.dark-mode select {
    background: var(--dm-bg);
    border-color: var(--dm-border);
    color: var(--dm-text);
}

html.dark-mode input:focus,
html.dark-mode textarea:focus,
html.dark-mode select:focus {
    border-color: var(--color-primary);
}

html.dark-mode input::placeholder,
html.dark-mode textarea::placeholder {
    color: var(--dm-text-muted);
}

/* Tabs */
html.dark-mode .about-tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
html.dark-mode .site-footer {
    background: var(--dm-bg-secondary);
}

/* Borders */
html.dark-mode .section-title,
html.dark-mode .form-actions,
html.dark-mode .nav-divider {
    border-color: var(--dm-border);
}

/* Message boxes */
html.dark-mode .account-message.success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

html.dark-mode .account-message.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Scrollbar */
html.dark-mode::-webkit-scrollbar {
    width: 10px;
}

html.dark-mode::-webkit-scrollbar-track {
    background: var(--dm-bg);
}

html.dark-mode::-webkit-scrollbar-thumb {
    background: var(--dm-border);
    border-radius: 5px;
}

html.dark-mode::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ========================================
   用户头像菜单样式
   ======================================== */
.header-user-menu {
    position: relative;
}

.header-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.header-user-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(var(--color-primary-rgb, 37, 99, 235), 0.3);
    transition: border-color 0.3s;
}

.header-user-btn:hover img {
    border-color: var(--color-primary);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.header-user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8fafc;
}

.dropdown-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.dropdown-user-info {
    flex: 1;
    min-width: 0;
}

.dropdown-user-info strong {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-info span {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.user-dropdown a:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}

.user-dropdown a.logout-link {
    color: #ef4444;
}

.user-dropdown a.logout-link:hover {
    background: #fef2f2;
}

.user-dropdown svg {
    flex-shrink: 0;
}

/* ========================================
   语言切换器样式
   ======================================== */
.header-translate {
    position: relative;
}

.translate-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    border-radius: 50%;
    transition: all 0.3s;
}

.translate-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.header-transparent:not(.header-scrolled) .translate-toggle {
    color: #fff;
}

.header-transparent:not(.header-scrolled) .translate-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 语言切换弹窗 - Apple风格 */
.translate-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.translate-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.translate-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.translate-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.translate-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
}

.translate-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.translate-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.translate-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.translate-modal-body {
    padding: 25px;
}

.translate-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.translate-lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: #334155;
    transition: all 0.2s ease;
}

.translate-lang-item:hover {
    background: #eff6ff;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.translate-lang-item.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.1));
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.translate-lang-item .lang-icon {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.translate-lang-item .lang-icon-emoji {
    font-size: 1.5rem;
}

.translate-lang-item .lang-name {
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .header-translate {
        order: -1;
    }

    .translate-lang-grid {
        grid-template-columns: 1fr;
    }

    .translate-modal {
        width: 95%;
        max-width: none;
    }
}

/* ========================================
   主导航子菜单下拉样式
   ======================================== */
.site-header .primary-navigation>ul>li.menu-item-has-children:not(.has-mega-menu)>a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.6;
    transition: transform 0.3s ease;
    display: inline-block;
    align-self: center;
}

.site-header .primary-navigation>ul>li.menu-item-has-children:not(.has-mega-menu):hover>a::after {
    transform: rotate(-180deg);
}

/* 一级下拉菜单 */
.site-header .primary-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.site-header .primary-navigation>ul>li:not(.has-mega-menu):hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-header .primary-navigation .sub-menu li {
    position: relative;
}

.site-header .primary-navigation .sub-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.site-header .primary-navigation .sub-menu li a:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}

.site-header .primary-navigation .sub-menu li.current-menu-item>a,
.site-header .primary-navigation .sub-menu li.current_page_item>a {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    color: var(--color-primary);
}

/* 二级下拉菜单（子级的子级） */
.site-header .primary-navigation .sub-menu .sub-menu {
    top: -8px;
    left: 100%;
    margin-left: 5px;
}

.site-header .primary-navigation .sub-menu li.menu-item-has-children>a::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid currentColor;
    opacity: 0.5;
}

.site-header .primary-navigation .sub-menu li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 透明头部时的下拉 */
.site-header.header-transparent:not(.header-scrolled) .primary-navigation .sub-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ========================================
   移动端导航菜单
   ======================================== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
    right: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: #1e293b;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
    background: #0f172a;
    transform: scale(1.05);
}

.mobile-menu-nav {
    padding: 15px 0;
}

.mobile-menu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-nav>ul>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-menu-nav>ul>li>a:hover,
.mobile-menu-nav>ul>li.current-menu-item>a {
    background: #f8fafc;
    color: var(--color-primary);
}

.mobile-menu-nav li.menu-item-has-children>a::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 400;
    color: #94a3b8;
    transition: transform 0.3s;
}

.mobile-menu-nav li.menu-item-has-children.is-open>a::after {
    transform: rotate(45deg);
}

/* 移动端子菜单 */
.mobile-menu-nav .sub-menu {
    display: none;
    background: #f8fafc;
    padding: 5px 0;
}

.mobile-menu-nav li.is-open>.sub-menu {
    display: block;
}

.mobile-menu-nav .sub-menu li a {
    display: block;
    padding: 12px 20px 12px 35px;
    color: #475569;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-menu-nav .sub-menu li a:hover,
.mobile-menu-nav .sub-menu li.current-menu-item a {
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.05);
}

/* 移动端二级子菜单 */
.mobile-menu-nav .sub-menu .sub-menu li a {
    padding-left: 50px;
    font-size: 0.85rem;
}

/* 移动端菜单Logo */
.mobile-menu-logo {
    display: flex;
    align-items: center;
}

.mobile-menu-logo img,
.mobile-menu-logo svg.custom-logo {
    max-height: 36px;
    width: auto;
}

.mobile-menu-logo .site-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.mobile-menu-logo .custom-logo-link img,
.mobile-menu-logo .custom-logo-link svg.custom-logo {
    max-height: 36px;
    width: auto;
}

/* 移动端菜单底部 */
.mobile-menu-footer {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
}

.mobile-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--color-primary, #2563eb) 0%, #7c3aed 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
}

.mobile-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ========================================
   页脚导航
   ======================================== */
.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 25px;
}

.footer-navigation a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
}

.footer-navigation a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.footer-navigation a:hover {
    color: #fff;
}

.footer-navigation a:hover::after {
    width: 100%;
}

.footer-navigation .current-menu-item a,
.footer-navigation .current_page_item a {
    color: #fff;
}

/* ========================================
   社交媒体菜单
   ======================================== */
.social-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-navigation a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-navigation a:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.social-navigation a svg,
.social-navigation a i {
    width: 18px;
    height: 18px;
}

/* ========================================
   暗黑模式导航
   ======================================== */
html.dark-mode .primary-navigation .sub-menu {
    background: var(--dm-bg-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

html.dark-mode .primary-navigation .sub-menu li a {
    color: var(--dm-text);
}

html.dark-mode .primary-navigation .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-primary);
}

html.dark-mode .mobile-menu {
    background: var(--dm-bg-card);
}

html.dark-mode .mobile-menu-header {
    border-bottom-color: var(--dm-border);
}

html.dark-mode .mobile-menu-close {
    background: var(--dm-bg);
    color: var(--dm-text-muted);
}

html.dark-mode .mobile-menu-nav>ul>li>a {
    color: var(--dm-text);
}

html.dark-mode .mobile-menu-nav>ul>li>a:hover {
    background: rgba(255, 255, 255, 0.05);
}

html.dark-mode .mobile-menu-nav .sub-menu {
    background: rgba(0, 0, 0, 0.2);
}

html.dark-mode .mobile-menu-nav .sub-menu li a {
    color: var(--dm-text-muted);
}

html.dark-mode .mobile-menu-nav .sub-menu li a:hover {
    color: var(--dm-text);
}

html.dark-mode .mobile-menu-logo .site-name {
    color: var(--dm-text);
}

html.dark-mode .mobile-menu-footer {
    border-top-color: var(--dm-border);
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 991px) {
    .primary-navigation {
        display: none;
    }

    .mobile-menu {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu-overlay {
        display: block;
    }
}

@media (max-width: 768px) {
    .footer-navigation ul {
        justify-content: center;
    }

    .social-navigation ul {
        justify-content: center;
    }
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body.has-mobile-bottom-nav {
        padding-bottom: 60px;
        /* Prevent content from being hidden */
    }

    .mobile-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        /* Fixed height */
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        z-index: 9999;
        border-top: 1px solid var(--color-gray-200);
        padding-bottom: env(safe-area-inset-bottom);
        box-sizing: content-box;
        /* Ensure padding doesn't eat height */
    }

    .mobile-bottom-menu {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none !important;
        /* Force remove bullets */
        height: 100%;
    }

    .mobile-bottom-menu li {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        position: relative;
        list-style: none !important;
        /* Double check */
    }

    /* Support for iconfont classes added in Menu settings */
    /* Usually these classes (iconfont icon-xxx) are added to the li tag */
    .mobile-bottom-menu li.iconfont {
        font-family: inherit;
        /* Prevent li from changing font for text */
    }

    .mobile-bottom-menu li.iconfont::before {
        display: block;
        font-family: "iconfont" !important;
        /* Ensure generic iconfont family */
        font-size: 24px;
        line-height: 1;
        margin-bottom: 2px;
        color: var(--color-gray-500);
        font-style: normal;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        /* Let the specific icon class (icon-xxx) provide the content */
    }

    .mobile-bottom-menu li.current-menu-item::before,
    .mobile-bottom-menu li.current_page_item::before {
        color: var(--color-primary);
    }

    .mobile-bottom-menu a {
        display: block;
        color: var(--color-gray-600);
        font-size: 12px;
        text-decoration: none;
        line-height: 1.2;
        text-align: center;
    }

    .mobile-bottom-menu .current-menu-item a,
    .mobile-bottom-menu .current_page_item a,
    .mobile-bottom-menu a:hover {
        color: var(--color-primary);
    }

    /* Dark Mode Support */
    html.dark-mode .mobile-bottom-nav {
        background: var(--color-gray-900);
        border-top-color: var(--color-gray-800);
    }

    html.dark-mode .mobile-bottom-menu li.iconfont::before {
        color: var(--color-gray-500);
    }

    html.dark-mode .mobile-bottom-menu a {
        color: var(--color-gray-500);
    }

    html.dark-mode .mobile-bottom-menu .current-menu-item a,
    html.dark-mode .mobile-bottom-menu .current_page_item a,
    html.dark-mode .mobile-bottom-menu a:hover,
    html.dark-mode .mobile-bottom-menu li.current-menu-item::before {
        color: var(--color-primary);
    }
}
