/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* 移动端优化 */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* 菜单打开时禁止背景滚动 */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
    font-size: 1.5rem;
}

/* logo image (responsive) */
.nav-logo .nav-logo-img,
.nav-logo img {
    display: block;
    max-height: 48px;
    width: auto;
    height: auto;
}

/* fine tune on smaller screens */
@media (max-width: 768px) {
    .nav-logo .nav-logo-img,
    .nav-logo img {
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .nav-logo .nav-logo-img,
    .nav-logo img {
        max-height: 32px;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 语言切换器 - 参考 Netmarble 设计 */
.language-selector-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.language-selector {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23666' d='M5 7.5L1.5 4h7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 10px;
    min-width: 110px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.language-selector:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #e5e7eb;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.language-selector:focus {
    outline: none;
    border-color: #2563eb;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #2563eb;
}

.language-selector:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.language-selector option {
    padding: 0.75rem 1rem;
    background: white;
    color: #333;
    font-weight: 500;
    border: none;
}

.language-selector option:hover {
    background: #f3f4f6;
    color: #2563eb;
}

/* 语言切换开关 */

/* 首页轮播图 */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.4);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* 轮播图控制 */
.slider-controls {
    position: absolute;
    bottom: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 3;
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Slightly smaller dots and tighter spacing on tablet and mobile */
@media (max-width: 1024px) {
    .slider-dots { gap: 8px; }
    .dot { width: 10px; height: 10px; }
    .dot.active { transform: scale(1.15); }
}

@media (max-width: 720px) {
    .slider-dots { gap: 6px; }
    .dot { width: 8px; height: 8px; }
    .dot.active { transform: scale(1.2); }
}

/* Extra small screens: make dots smaller and tighter */
@media (max-width: 480px) {
    .slider-dots { gap: 5px; bottom: 22px; }
    .dot { width: 6px; height: 6px; }
    .dot.active { transform: scale(1.15); }
}

/* 通用区块样式 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* 关于我们 */
.about-section {
    padding: 100px 0;
    background: #f8fafc;
}

/* 模态弹窗样式 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 20px;
    overflow-y: auto;
}
.modal-overlay.show {
    display: flex;
}
.modal {
    background: white;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(2,6,23,0.35);
    overflow: hidden;
    max-height: calc(100vh - 80px);
    z-index: 1060;
}
.modal-content {
    padding: 20px 24px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}
.modal-close {
    position: absolute;
    right: 18px;
    top: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #374151;
}
.modal-subtitle {
    color: #6b7280;
    margin-bottom: 12px;
}
.modal-form { display:block; }
.modal-form .form-row { margin-bottom: 16px; }
.modal-form label { display:block; margin-bottom:6px; color:#374151; font-weight:600; }
.modal-form input, .modal-form select, .modal-form textarea { width:100%; padding:12px 14px; border-radius:10px; border:1px solid #e6edf3; background:#fff; box-shadow: 0 1px 4px rgba(16,24,40,0.03); transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.08s ease; font-size:0.95rem; }
.modal-form input:focus, .modal-form select:focus, .modal-form textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 6px 20px rgba(37,99,235,0.08); transform: translateY(-1px); }
.modal-form textarea { min-height:96px; resize:vertical; }
.modal-form .form-actions { display:flex; gap:12px; align-items:center; margin-top:8px; }
.modal-form .form-result { margin-top:8px; font-weight:600; }

/* Select2 Custom Styling */
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    min-height: 42px;
    padding: 4px;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, #91aff1, #3b82f6);
    border: none;
    color: white;
    border-radius: 20px;
    padding: 6px 12px 6px 8px;
    margin: 3px 2px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
    line-height: 1.4;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice:hover {
    background: linear-gradient(135deg, #91aff1, #2563eb);
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__display {
    padding: 0;
    margin: 0;
    color: white;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 6px;
    margin-left: 0;
    border-right: none;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: white;
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #2563eb;
    color: white;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Ensure Select2 dropdown appears above modal */
.select2-container {
    z-index: 10000;
}

.select2-dropdown {
    z-index: 10001;
}

/* Mobile: show touch-friendly hint */
@media (hover: none) and (pointer: coarse) {
    .modal-form select[multiple] {
        min-height: 150px;
    }
    
    .modal-form select[multiple] option {
        min-height: 44px;
        padding: 12px;
        font-size: 1rem;
    }
}

.multi-select-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
    line-height: 1.4;
}

.multi-select-hint::before {
    content: '💡 ';
    margin-right: 4px;
}

/* Add instruction text for multi-select */
.modal-form select[multiple] {
    position: relative;
}

/* .modal-form .form-row:has(select[multiple]) label::after {
    content: ' (按住 Ctrl/Cmd 键可多选)';
    font-size: 0.7rem;
    font-weight: normal;
    color: #6b7280;
    margin-left: 4px;
} */

/* Mobile: different instruction */
/* @media (hover: none) and (pointer: coarse) {
    .modal-form .form-row:has(select[multiple]) label::after {
        content: ' (点击可多选)';
    }
} */

.modal-form .form-row {
    position: relative;
}

/* responsive grid rows inside modal */
.grid-row { display:flex; gap:12px; }
.grid-row .form-row { flex:1 1 0; }
@media (max-width: 720px) {
    .grid-row { flex-direction: column; }
}

/* required indicator */
.form-row.required label::after { content: ' *'; color: #ef4444; margin-left:4px; font-weight:700; }
.modal-form .btn-outline { background: transparent; border: 1px solid #d1d5db; padding: 10px 14px; border-radius:8px; cursor:pointer; }

/* required field marker */
.modal-form .form-row.required label::after {
    content: '*';
    color: #ef4444;
    margin-left: 6px;
    font-weight: 700;
}

/* Responsive modal grid for better multi-column layout on wide screens */
.modal-form .grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal-form .full-row {
    grid-column: 1 / -1;
}

/* Make advertiser-related fields visually grouped */
.advertiser-only { display: block; }

/* Channel-only fields are hidden by default; JS toggles display */
.channel-only { display: none; }

@media (max-width: 800px) {
    .modal { max-width: 92%; }
    .modal-form .grid-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .modal-form .grid-row {
        flex-direction: column;
    }
    .modal-form select[multiple] {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .modal-content { padding: 16px; }
    .modal-form input, .modal-form textarea { padding: 12px; }
    .modal .modal-close { right: 12px; top: 8px; }
    .modal-form .form-row {
        margin-bottom: 12px;
    }
}
.form-result { margin-top:10px; color:#16a34a; font-weight:600; }

/* 卡片底部 CTA */
.card-actions { margin-top:16px; }
.card-cta { background: linear-gradient(135deg, #2563eb, #3b82f6); color:white; border:none; padding:10px 18px; border-radius:8px; cursor:pointer; font-weight:600; }
.card-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(37, 99, 235, 0.18); }

/* 小屏处理 modal/CTA */
@media (max-width: 480px) {
    .modal { max-width: 100%; border-radius: 8px; }
    .modal-content { padding: 16px; }
    .modal-form .form-actions { flex-direction: column; }
    .card-cta { width: 100%; padding:12px; }
}

/* Partners section */
.partners-section { padding: 60px 0; background: #fff; }
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
    align-items: center;
    justify-items: center;
    margin-top: 1.5rem;
}
.partner-item { display: block; width: 100%; max-width: 160px; padding: 12px; border-radius: 8px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.partner-item img { display: block; width: 100%; height: auto; object-fit: contain; filter: grayscale(0.02); opacity: 0.95; }
/* .partner-item:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(2,6,23,0.08); } */

@media (max-width: 600px) {
    .partners-section { padding: 40px 0; }
    .partners-grid { gap: 16px; }
    .partner-item { max-width: 120px; padding: 8px; }
}

/* Mobile: make stats horizontal to save vertical space */
@media (max-width: 480px) {
    .stats {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-top: 1rem;
    }
    .stat-item {
        flex: 1 1 0;
        text-align: center;
        padding: 6px 4px;
    }
    .stat-item h4 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    .stat-item p {
        font-size: 0.85rem;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #6b7280;
    font-weight: 500;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-features{
    margin-top: 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}
.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.about-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.about-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* 服务介绍 */
.services-section {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Modern two-panel services layout */
.services-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

/* solusions aliases (same visual rules but module-prefixed) */
.solusions-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.service-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(2,6,23,0.06);
    border: 1px solid rgba(14, 165, 233, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.32s cubic-bezier(.2,.9,.2,1), box-shadow 0.32s ease;
}

.panel-header { display:flex; gap:1rem; align-items:center; margin-bottom:0.6rem; }
.service-panel .service-icon { width:76px; height:76px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.6rem; color:white; }
.panel-title h3 { margin:0; font-size:1.45rem; color:#0f172a; }
.panel-sub { margin:0; color:#6b7280; font-size:0.95rem; }
.panel-desc { color:#374151; margin:1rem 0 0.8rem; line-height:1.7; }

.service-features { list-style: none; padding-left: 0; margin: 0 0 1rem 0; display:block; }
.service-features li { padding: 0.4rem 0; color:#475569; font-weight:500; }
.service-features li::before { content: '•'; color:#2563eb; display:inline-block; width:1.2rem; margin-right:0.4rem; }

.panel-actions { margin-top: 1rem; }
.service-panel .card-cta { padding: 12px 20px; border-radius: 10px; }

.advertiser-panel { background-image: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(59,130,246,0.02)); }
.channel-panel { background-image: linear-gradient(135deg, rgba(16,185,129,0.03), rgba(6,95,70,0.02)); }

.service-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(2,6,23,0.12);
}

.advertiser-panel .service-icon { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.channel-panel .service-icon { background: linear-gradient(135deg, #10b981, #059669); }

.service-panel::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 16px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
    border-radius: 12px;
    pointer-events: none;
    mix-blend-mode: soft-light;
    opacity: 0.6;
}

@media (max-width: 900px) {
    .services-modern { grid-template-columns: 1fr; }
    .panel-header { gap: 0.75rem; }
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* 行业资讯 */
.news-section {
    padding: 100px 0;
    background: #f8fafc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-date, .news-category {
    font-size: 0.9rem;
    color: #6b7280;
}

.news-category {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.news-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-content p {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1d4ed8;
}

/* 联系我们 */
.contact-section {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #6b7280;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

/* 表单辅助样式 */
.form-note {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.required {
    color: #ef4444;
    font-weight: 700;
    margin-left: 4px;
}

.optional {
    color: #9ca3af;
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 6px;
}

.form-error {
    margin-top: 0.5rem;
    color: #ef4444;
    font-size: 0.9rem;
    display: none;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
    border-color: #ef4444;
}

.form-group.invalid .form-error {
    display: block;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* 页脚 */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2563eb;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* 快速置顶按钮 */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.scroll-to-top i {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   响应式设计 - 全面优化手机和平板适配
   ============================================ */

/* 平板横屏 (1024px - 1280px) */
@media (max-width: 1280px) and (min-width: 1024px) {
    .container {
        max-width: 1000px;
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 0 30px;
    }
    
    .services-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .about-content,
    .contact-content {
        gap: 3rem;
    }
}

/* 平板竖屏 (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
    }
    
    /* 轮播图 */
    .hero-section {
        height: 80vh;
    }
    
    .slide-content h1 {
        font-size: 3rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    /* 区块间距 */
    .about-section,
    .services-section,
    .news-section,
    .contact-section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    /* 关于我们 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item h4 {
        font-size: 2.2rem;
    }
    
    /* 服务网格 */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    /* 新闻网格 */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* 联系我们 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* 页脚 */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 轮播控制 */
    .slider-controls {
        padding: 0 30px;
    }
    
    .prev-btn, .next-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* 手机横屏和小平板 (600px - 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 80px 0 2rem;
        gap: 1.5rem;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .language-selector-wrapper {
        width: 100%;
        justify-content: center;
        padding: 0 2rem;
        margin-top: 1rem;
    }
    
    .language-selector {
        width: 100%;
        max-width: 250px;
        padding: 0.75rem 2.5rem 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* 轮播图 */
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide-content {
        padding: 0 30px;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .slide-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .slider-controls {
        padding: 0 20px;
    }
    
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .slider-dots {
        bottom: 20px;
    }
    
    /* 区块间距 */
    .about-section,
    .services-section,
    .news-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    /* 关于我们 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 0.9rem;
    }
    
    .about-image img {
        height: 300px;
    }
    
    /* 服务网格 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* 新闻网格 */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .news-content h3 {
        font-size: 1.2rem;
    }
    
    /* 联系我们 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    /* 页脚 */
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* 快速置顶按钮 - 移动端 */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* 手机竖屏 (480px - 600px) */
@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .hero-section {
        height: 65vh;
        min-height: 450px;
    }
    
    .slide-content {
        padding: 0 20px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 0.95rem;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item h4 {
        font-size: 2.2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .news-content h3 {
        font-size: 1.1rem;
    }
}

/* 小手机 (最大 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo h2 {
        font-size: 1.1rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .hamburger {
        width: 22px;
    }
    
    .bar {
        width: 22px;
        height: 2.5px;
    }
    
    /* 轮播图 */
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-content {
        padding: 0 15px;
    }
    
    .slide-content h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .slider-controls {
        padding: 0 15px;
    }
    
    .prev-btn, .next-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    /* 区块间距 */
    .about-section,
    .services-section,
    .news-section,
    .contact-section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    /* 关于我们 */
    .about-text h3 {
        font-size: 1.4rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
    }
    
    .stats {
        gap: 1.25rem;
    }
    
    .stat-item h4 {
        font-size: 1.8rem;
    }
    
    .stat-item p {
        font-size: 0.85rem;
    }
    
    .about-image img {
        height: 250px;
        border-radius: 15px;
    }
    
    /* 服务卡片 */
    .service-card {
        padding: 1.5rem 1rem;
        margin: 0;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
/* Ensure mobile .stats displays horizontally on small screens and override later rules */
@media (max-width: 480px) {
    .about-section .stats {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
        padding: 0 10px;
    }
    .about-section .stat-item {
        flex: 1 1 0;
        min-width: 0;
    }
    .about-section .stat-item h4 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    .about-section .stat-item p {
        font-size: 0.8rem;
        margin: 0;
    }
}

/* 更严格的点样式覆盖：针对平板与手机，使用更具体选择器并缩小尺寸 */
@media (max-width: 1024px) {
    .hero-section .slider-dots { gap: 6px !important; bottom: 26px !important; }
    .hero-section .slider-dots .dot { width: 9px !important; height: 9px !important; }
    .hero-section .slider-dots .dot.active { transform: scale(1.10) !important; }
}

@media (max-width: 720px) {
    .hero-section .slider-dots { gap: 5px !important; bottom: 24px !important; }
    .hero-section .slider-dots .dot { width: 7px !important; height: 7px !important; }
    .hero-section .slider-dots .dot.active { transform: scale(1.08) !important; }
}

@media (max-width: 480px) {
    .hero-section .slider-dots { gap: 4px !important; bottom: 20px !important; }
    .hero-section .slider-dots .dot { width: 5px !important; height: 5px !important; }
    .hero-section .slider-dots .dot.active { transform: scale(1.05) !important; }
}
    
    /* 新闻卡片 */
    .news-card {
        margin: 0;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-meta {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .news-date, .news-category {
        font-size: 0.85rem;
    }
    
    .news-content h3 {
        font-size: 1.05rem;
        margin-bottom: 0.75rem;
    }
    
    .news-content p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    /* 联系我们 */
    .contact-info {
        gap: 1.25rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-details h4 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.85rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.85rem;
        font-size: 0.9rem;
    }
    
    /* 页脚 */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
    }
    
    /* 快速置顶按钮 - 小手机 */
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* 超小手机 (最大 360px) */
@media (max-width: 360px) {
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .about-text h3 {
        font-size: 1.2rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .news-content h3 {
        font-size: 1rem;
    }
}

/* 小屏手机：将解决方案面板改为垂直展示，仅在 <=480px 时生效 */
@media (max-width: 480px) {
    .services-section .solusions-modern,
    .services-section .solusions-modern .solusions-panel {
        display: block;
        width: 100%;
    }
    .services-section .solusions-modern .solusions-panel {
        box-sizing: border-box;
        margin-bottom: 1rem;
        padding: 0.75rem;
    }
    .services-section .solusions-modern .panel-header {
        align-items: flex-start;
    }
    .services-section .solusions-modern .panel-actions {
        margin-top: 0.5rem;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增加触摸目标大小 */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cta-button,
    .submit-btn,
    .prev-btn,
    .next-btn,
    .scroll-to-top {
        min-height: 44px;
        min-width: 44px;
    }

    /* 保持轮播点小尺寸，避免触摸设备下变得过大 */
    .hero-section .slider-dots .dot,
    .slider-dots .dot {
        min-width: 0;
        min-height: 0;
        width: 6px;
        height: 6px;
    }
    
    /* 移除悬停效果，使用点击效果 */
    .service-card:hover,
    .news-card:hover {
        transform: none;
    }
    
    .service-card:active,
    .news-card:active {
        transform: scale(0.98);
    }
    
    /* 优化表单输入 */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* 防止iOS自动缩放 */
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
        min-height: auto;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}
/* 语言切换器 - 下拉菜单样式 */
.language-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.language-toggle-btn {
    padding: 0.5rem 1rem;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-toggle-btn:hover {
    color: #2563eb;
}

.language-toggle-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.language-toggle-btn:hover::after {
    width: 100%;
}

.language-current {
    display: inline-block;
}

.language-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-toggle:hover .language-arrow,
.language-toggle.active .language-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

/* PC端：hover显示下拉菜单 */
@media (hover: hover) and (pointer: fine) {
    .language-toggle:hover .language-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* 移动端：点击显示下拉菜单 */
@media (hover: none) and (pointer: coarse) {
    .language-toggle.active .language-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.language-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.language-option:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.language-option.active {
    color: #2563eb;
    background: #eff6ff;
}

.language-option::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.language-option:hover::after {
    width: 100%;
}

/* solusions panel aliases */
.solusions-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(2,6,23,0.06);
    border: 1px solid rgba(14, 165, 233, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.32s cubic-bezier(.2,.9,.2,1), box-shadow 0.32s ease;
    position: relative;
}

.solusions-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(2,6,23,0.12);
}

.solusions-panel .solusions-icon { width:76px; height:76px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:1.6rem; color:white; }
.solusions-advertiser-panel .solusions-icon { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.solusions-channel-panel .solusions-icon { background: linear-gradient(135deg, #10b981, #059669); }

.solusions-features { list-style: none; padding-left: 0; margin: 0 0 1rem 0; display:block; }
.solusions-features li { padding: 0.4rem 0; color:#475569; font-weight:500; }
.solusions-features li::before { content: '•'; color:#2563eb; display:inline-block; width:1.2rem; margin-right:0.4rem; }

/* Responsive dropdown styling */
.responsive-dropdown {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.responsive-dropdown.dropdown-focused {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

@media (max-width: 768px) {
    .responsive-dropdown {
        font-size: 14px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .responsive-dropdown {
        font-size: 12px;
        padding: 6px;
    }
}

/* Ensure input fields in grid-row take equal width */
.grid-row .form-row {
    flex: 1;
    min-width: 0;
    margin-right: 10px;
}

/* Remove extra margin for the last form-row in a grid-row */
.grid-row .form-row:last-child {
    margin-right: 0;
}