/* Custom Styles for LIK Website */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nanum Gothic', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo h1 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
}

.logo-accent {
    color: #ff6b35;
    margin-left: 5px;
    font-size: 20px;
}

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

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    padding: 10px 0;
}

.nav-menu li a:hover,
.nav-menu li.active a {
    color: #ff6b35;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li.active a::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/img04.jpg') center/cover;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.hero-text {
    max-width: 600px;
    margin-left: 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 30px;
    color: #ffffff;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #ffffff;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    background: #ff6b35;
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #ff6b35;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: transparent;
    color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: #ff6b35;
}

/* Geometric Pattern */
.geometric-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    opacity: 0.1;
    background: 
        radial-gradient(circle at 20% 20%, #ffffff 1px, transparent 1px),
        radial-gradient(circle at 80% 40%, #ffffff 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, #ffffff 1px, transparent 1px),
        linear-gradient(45deg, transparent 40%, #ffffff 40%, #ffffff 60%, transparent 60%);
    background-size: 50px 50px, 30px 30px, 40px 40px, 100px 100px;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.service-card, .contact-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-card.animate-in, .contact-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card.hovered {
    transform: translateY(-15px) scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .geometric-pattern {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional Sections */
.section {
    padding: 80px 0;
    background: #1a1a1a;
}

.section:nth-child(even) {
    background: #222222;
}

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

.section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ffffff;
    text-align: center;
}

.section p {
    font-size: 18px;
    line-height: 1.6;
    color: #cccccc;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #ff6b35;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #cccccc;
    text-align: center;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: #ff6b35;
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 24px;
    color: #ff6b35;
    width: 30px;
    text-align: center;
}

.contact-item p {
    font-size: 16px;
    color: #ffffff;
    margin: 0;
    text-align: left;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 28px;
    }
    
    .section p {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card img {
        height: 150px;
    }
}

/* Service Page Layout Styles */
.service-page-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 20px;
    gap: 40px;
    min-height: calc(100vh - 80px);
}

/* Left Sidebar */
.service-sidebar {
    flex: 0 0 280px;
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.service-sidebar h2 {
    color: #333333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.service-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-sidebar li {
    margin-bottom: 8px;
}

.service-sidebar a {
    display: block;
    padding: 12px 15px;
    color: #666666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.service-sidebar a:hover,
.service-sidebar a.active {
    background: #f8f9fa;
    color: #333333;
    border-left-color: #007bff;
    transform: translateX(5px);
}

/* Main Content Area */
.service-content {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-content h1 {
    color: #333333;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.service-content .service-subtitle {
    color: #666666;
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Service Info Grid */
.service-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.service-info-left h3 {
    color: #333333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-info-left p {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.service-info-right h3 {
    color: #333333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-info-right p {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Phone Mockup */
.phone-mockup {
    text-align: center;
    margin-top: 40px;
}

.phone-mockup img {
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb li {
    color: #999999;
    font-size: 14px;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 10px;
    color: #cccccc;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #0056b3;
}

.breadcrumb .current {
    color: #333333;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-page-wrapper {
        gap: 30px;
        padding: 15px;
    }
    
    .service-sidebar {
        flex: 0 0 250px;
    }
    
    .service-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .service-page-wrapper {
        flex-direction: column;
        gap: 20px;
        margin-top: 70px;
    }
    
    .service-sidebar {
        flex: none;
        position: static;
        width: 100%;
    }
    
    .service-content {
        padding: 25px;
    }
    
    .service-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-content h1 {
        font-size: 28px;
    }
    
    .service-content .service-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .service-page-wrapper {
        padding: 10px;
    }
    
    .service-sidebar,
    .service-content {
        padding: 20px;
    }
    
    .service-content h1 {
        font-size: 24px;
    }
    
    .phone-mockup img {
        max-width: 250px;
    }
}

/* Lemonis page specific styles */
.wrapper.row3 {
    margin-top: 10px !important;
}

/* Additional Lemonis page adjustments */
#comments {
    margin-top: 10px;
}

#comments h1 {
    color: #333333;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

#comments p {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ========================================
   语言切换按钮样式
   ======================================== */

/* 导航栏语言切换按钮容器 */
.language-switcher-nav {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

/* 导航栏语言切换按钮 */
.language-btn-nav {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    box-shadow: 
        0 3px 12px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.language-btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.language-btn-nav:hover::before {
    left: 100%;
}

.language-btn-nav:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.language-btn-nav:active {
    transform: translateY(0);
    box-shadow: 
        0 3px 10px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.language-btn-nav i.fa-globe {
    font-size: 16px;
    color: #fff;
    opacity: 0.95;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.language-btn-nav i.fa-chevron-down {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.language-btn-nav.active i.fa-chevron-down {
    transform: rotate(180deg);
    color: #fff;
}

/* 语言切换下拉菜单 */
.language-dropdown-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    box-shadow: 
        0 12px 40px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.8);
    min-width: 140px;
    margin-top: 10px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: slideDownEnhanced 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.language-dropdown-nav .language-option {
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #333;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.language-dropdown-nav .language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,123,255,0.05), transparent);
    transition: left 0.5s ease;
}

.language-dropdown-nav .language-option:hover::before {
    left: 100%;
}

.language-dropdown-nav .language-option:last-child {
    border-bottom: none;
}

.language-dropdown-nav .language-option:hover {
    background: rgba(0,123,255,0.06);
    padding-left: 24px;
    transform: translateX(3px);
}

.language-dropdown-nav .language-option:active {
    background: rgba(0,123,255,0.1);
    transform: translateX(1px);
}

.language-dropdown-nav .language-option.selected {
    background: rgba(0,123,255,0.08);
    font-weight: 700;
    color: #f4bf4f;
    position: relative;
}

.language-dropdown-nav .language-option.selected::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #f4bf4f 0%);
    box-shadow: 0 0 8px rgba(79, 172, 254, 0.4);
}

.language-dropdown-nav .language-option i.fa-flag {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.85;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.language-dropdown-nav .language-option span {
    flex: 1;
    font-weight: inherit;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-switcher-nav {
        margin-left: 10px;
    }
    
    .language-btn-nav {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .language-btn-nav .btn-text {
        display: none;
    }
}

/* ========================================
   小屏导航栏语言切换按钮样式 - 精致版
   ======================================== */

/* 小屏导航栏语言切换按钮容器 */
.language-switcher-mobile {
    position: relative;
    display: block;
    margin: 20px 0 15px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 20px;
}

/* 小屏导航栏语言切换按钮 */
.language-btn-mobile {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    width: 100%;
    text-align: left;
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.language-btn-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.language-btn-mobile:hover::before {
    left: 100%;
}

.language-btn-mobile:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.language-btn-mobile:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.language-btn-mobile i.fa-globe {
    font-size: 20px;
    color: #fff;
    opacity: 0.95;
    margin-right: 4px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.language-btn-mobile .btn-text {
    flex: 1;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.language-btn-mobile i.fa-chevron-down {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-left: auto;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.language-btn-mobile.active {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.language-btn-mobile.active i.fa-chevron-down {
    transform: rotate(180deg);
    color: #fff;
}

/* 小屏语言切换下拉菜单 */
.language-dropdown-mobile {
    display: none;
    background: rgba(15,15,15,0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    margin-top: 12px;
    overflow: hidden;
    box-shadow: 
        0 12px 40px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: slideDownEnhanced 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideDownEnhanced {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.language-dropdown-mobile .language-option {
    padding: 18px 22px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.language-dropdown-mobile .language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s ease;
}

.language-dropdown-mobile .language-option:hover::before {
    left: 100%;
}

.language-dropdown-mobile .language-option:last-child {
    border-bottom: none;
}

.language-dropdown-mobile .language-option:hover {
    background: rgba(255,255,255,0.08);
    padding-left: 28px;
    transform: translateX(4px);
}

.language-dropdown-mobile .language-option:active {
    background: rgba(255,255,255,0.12);
    transform: translateX(2px);
}

.language-dropdown-mobile .language-option.selected {
    background: rgba(255,255,255,0.12);
    font-weight: 700;
    color: #fff;
    position: relative;
}

.language-dropdown-mobile .language-option.selected::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 0 8px rgba(79, 172, 254, 0.5);
}

.language-dropdown-mobile .language-option i.fa-flag {
    font-size: 18px;
    width: 24px;
    text-align: center;
    opacity: 0.95;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.language-dropdown-mobile .language-option span {
    flex: 1;
    font-weight: inherit;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 大屏时隐藏小屏语言切换按钮 */
@media (min-width: 769px) {
    .language-switcher-mobile {
        display: none;
    }
}

/* 移动端特殊优化 */
@media (max-width: 480px) {
    .language-btn-mobile {
        padding: 16px 18px;
        font-size: 15px;
        border-radius: 14px;
    }
    
    .language-btn-mobile i.fa-globe {
        font-size: 18px;
    }
    
    .language-btn-mobile i.fa-chevron-down {
        font-size: 14px;
    }
    
    .language-dropdown-mobile .language-option {
        padding: 16px 18px;
        font-size: 15px;
    }
    
    .language-dropdown-mobile .language-option:hover {
        padding-left: 24px;
    }
}

/* ========================================
   小屏顶部按钮组样式
   ======================================== */

/* 小屏顶部按钮组容器 */
.mobile-top-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

/* 汉堡菜单按钮样式 - 保持原始样式 */
.mobile-top-buttons .hamburger {
    background: #171717;
    display: block;
    width: auto;
    position: relative;
    top: auto;
    line-height: 45px;
    padding: 5px 15px 0px 15px;
    color: #999;
    border: 0;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    outline: none !important;
    z-index: 10000000000000;
    height: 50px;
}

.mobile-top-buttons .hamburger img {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 25px;
}

/* 小屏顶部语言切换按钮 */
.language-switcher-mobile-top {
    position: relative;
    display: block;
}

.language-btn-mobile-top {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: inherit;
    text-align: left;
    box-shadow: 
        0 4px 16px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    height: 44px;
}

.language-btn-mobile-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.language-btn-mobile-top:hover::before {
    left: 100%;
}

.language-btn-mobile-top:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

.language-btn-mobile-top:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.language-btn-mobile-top i.fa-globe {
    font-size: 16px;
    color: #fff;
    opacity: 0.95;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.language-btn-mobile-top .btn-text {
    flex: 1;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.language-btn-mobile-top i.fa-chevron-down {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.language-btn-mobile-top.active {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.language-btn-mobile-top.active i.fa-chevron-down {
    transform: rotate(180deg);
    color: #fff;
}

/* 小屏顶部语言切换下拉菜单 */
.language-dropdown-mobile-top {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15,15,15,0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    margin-top: 8px;
    overflow: hidden;
    box-shadow: 
        0 12px 40px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: slideDownEnhanced 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 140px;
}

.language-dropdown-mobile-top .language-option {
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.language-dropdown-mobile-top .language-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s ease;
}

.language-dropdown-mobile-top .language-option:hover::before {
    left: 100%;
}

.language-dropdown-mobile-top .language-option:last-child {
    border-bottom: none;
}

.language-dropdown-mobile-top .language-option:hover {
    background: rgba(255,255,255,0.08);
    padding-left: 22px;
    transform: translateX(3px);
}

.language-dropdown-mobile-top .language-option:active {
    background: rgba(255,255,255,0.12);
    transform: translateX(1px);
}

.language-dropdown-mobile-top .language-option.selected {
    background: rgba(255,255,255,0.12);
    font-weight: 700;
    color: #fff;
    position: relative;
}

.language-dropdown-mobile-top .language-option.selected::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 0 8px rgba(79, 172, 254, 0.5);
}

.language-dropdown-mobile-top .language-option i.fa-flag {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.95;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.language-dropdown-mobile-top .language-option span {
    flex: 1;
    font-weight: inherit;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 大屏时隐藏小屏顶部按钮组 */
@media (min-width: 769px) {
    .mobile-top-buttons {
        display: none;
    }
}

/* ========================================
   抽屉菜单底部语言切换按钮样式
   ======================================== */

/* 抽屉菜单语言切换容器 */
.drawer-language-switcher {
 
    margin-top: 10px; 
}

.drawer-language-container {
    position: relative;
    padding: 0 15px;
}

/* 抽屉菜单语言切换按钮 */
.drawer-language-btn {
    background: transparent;
    border: 1px solid #474747;
    border-radius: 6px;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.drawer-language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #666;
}

.drawer-language-btn:active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(1px);
}

.drawer-language-btn i.fa-globe {
    font-size: 16px;
    color: #999;
}

.drawer-language-btn i.fa-chevron-down {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
}

.drawer-language-btn.active i.fa-chevron-down {
    transform: rotate(180deg);
}

/* 抽屉菜单语言切换下拉菜单 */
.drawer-language-dropdown {
    display: none;
    position: fixed; /* 改为fixed定位，避免在全屏模式下被父容器影响 */
    top: auto; /* 移除top定位，让JavaScript动态计算 */
    left: auto; /* 移除left定位，让JavaScript动态计算 */
    right: auto; /* 移除right定位，让JavaScript动态计算 */
    background: #171717;
    border: 1px solid #474747;
    border-radius: 6px;
    margin-top: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999999; /* 提高z-index，确保在全屏模式下也能显示 */
    min-width: 200px; /* 设置最小宽度 */
    max-width: 250px; /* 设置最大宽度 */
}

.drawer-language-dropdown.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 抽屉菜单语言选项 */
.drawer-language-option {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #474747;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.drawer-language-option:last-child {
    border-bottom: none;
}

.drawer-language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.drawer-language-option:active {
    background: rgba(255, 255, 255, 0.15);
}

.drawer-language-option.selected {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.drawer-language-option i.fa-flag {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.drawer-language-option span {
    flex: 1;
}

/* 移动端特殊优化 */
@media (max-width: 480px) {
    .mobile-top-buttons {
        top: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .mobile-top-buttons .hamburger {
        padding: 5px 15px 0px 15px;
        height: 50px;
    }
    
    .mobile-top-buttons .hamburger img {
        width: 25px;
    }
    
    .language-btn-mobile-top {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 10px;
        min-width: 100px;
        height: 40px;
    }
    
    .language-btn-mobile-top i.fa-globe {
        font-size: 14px;
    }
    
    .language-btn-mobile-top i.fa-chevron-down {
        font-size: 10px;
    }
    
    .language-dropdown-mobile-top .language-option {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .language-dropdown-mobile-top .language-option:hover {
        padding-left: 20px;
    }
}

:fullscreen .drawer-language-option:active,
:-webkit-full-screen .drawer-language-option:active,
:-moz-full-screen .drawer-language-option:active {
    background: rgba(255, 255, 255, 0.15) !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
