/* 8K Limited 网站样式 - Bootstrap集成版本 */

/* 基础重置和变量 */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Bootstrap已经提供了container类，这里添加自定义样式 */
.custom-container {
    max-width: 1400px;
}

/* PC端页面留白 */
@media (min-width: 1200px) {
    .container-fluid {
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* 超宽屏幕留白 */
@media (min-width: 1600px) {
    .container-fluid {
        padding-left: 8%;
        padding-right: 8%;
    }
}

/* 4K屏幕留白 */
@media (min-width: 2000px) {
    .container-fluid {
        padding-left: 12%;
        padding-right: 12%;
    }
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding-left: 2rem;
    padding-right: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    opacity: 1 !important;
    transition: none;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .logo-text {
    color: var(--primary-color);
    text-shadow: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.active {
    color: var(--white);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--white);
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
    text-shadow: none;
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.navbar.scrolled .nav-link.active {
    color: var(--primary-color);
}

.navbar.scrolled .nav-link.active::after {
    background: var(--primary-color);
}

/* 语言选择器 */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.lang-btn:hover {
    color: var(--accent-color);
}

.navbar.scrolled .lang-btn {
    color: var(--text-dark);
    text-shadow: none;
}

.navbar.scrolled .lang-btn:hover {
    color: var(--primary-color);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 0.5rem;
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--light-bg);
}

.lang-option img {
    opacity: 1 !important;
    width: 24px;
    height: 18px;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-bg-video.loaded {
    opacity: 1;
}

/* 视频加载指示器 */
.video-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

.video-loading-indicator .spinner-border {
    width: 3rem;
    height: 3rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(59, 130, 246, 0.6));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.hero-content.loaded {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    opacity: 0.95;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    font-weight: 400;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    text-shadow: none;
}

.cta-button:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
    color: var(--white);
}

/* 主要内容区域 */
.main-content {
    padding-top: 80px;
}

/* 特色部分 - Bootstrap集成 */
.feature-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.feature-section.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-image img {
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.feature-image img:hover {
    transform: scale(1.05);
}

.feature-content h2 {
    color: var(--primary-color);
}

.feature-content p {
    color: var(--text-light);
}

/* 服务区域 - Bootstrap集成 */
.services-section {
    background: var(--light-bg);
}

.service-image img {
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.service-image img:hover {
    transform: scale(1.05);
}

.service-content h3 {
    color: var(--primary-color);
}

.service-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* 最新资讯区域 */
.news-section {
    background: var(--white);
}

.news-placeholder {
    border: 2px dashed var(--border-color);
    background: var(--light-bg) !important;
}

/* 客户心声区域 */
.testimonials-section {
    background: var(--light-bg);
}

.testimonial-card {
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.testimonial-card .card-title {
    color: var(--primary-color);
}

.testimonial-card .card-text {
    font-style: italic;
    line-height: 1.6;
}

/* 联系我们区域 - 三栏布局 */
.contact-section {
    background: var(--white);
}

/* 左栏 - 联系表单 */
.contact-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    height: 100%;
    min-height: 400px;
}

.contact-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.contact-form .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.contact-form .btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* 中栏 - 地图 */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 400px;
}

/* 右栏 - 联系信息 */
.contact-info {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
}

.contact-item i {
    font-size: 1.3rem;
    margin-top: 0.3rem;
    width: 30px;
}

.contact-item strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

/* 移动端优化 */
@media (max-width: 991px) {
    .contact-form,
    .contact-info {
        min-height: auto;
        margin-bottom: 2rem;
    }
    
    .map-container {
        min-height: 300px;
        margin-bottom: 2rem;
    }
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 内容占位符 */
.content-placeholder {
    text-align: center;
    padding: 5rem 0;
}

.content-placeholder h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.content-placeholder p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* 页脚 - 简化版本 */
.footer {
    border-top: 1px solid var(--border-color);
}

/* 移动端重置留白 */
@media (max-width: 1199px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .nav-container {
        max-width: none;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

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

    .nav-menu .nav-item {
        margin: 0.5rem 0;
    }

    .language-selector {
        width: 100%;
    }

    .lang-btn {
        width: 100%;
        justify-content: space-between;
        padding: 1rem;
        color: var(--primary-color);
        text-shadow: none;
    }

    .lang-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--light-bg);
        margin: 0.5rem 0;
        border-radius: 0.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-content {
        max-width: 95%;
        padding: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-grid.reverse {
        direction: ltr;
    }

    .feature-content h2 {
        font-size: 2rem;
    }

    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-content {
        padding: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .feature-content h2 {
        font-size: 1.5rem;
    }

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

    .container {
        padding: 0 15px;
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* 图片加载效果 */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* History 页面特定样式 */
.history-hero {
    height: 65vh;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.transformation-section {
    background: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color) !important;
    margin-bottom: 3rem;
}

.placeholder-box {
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color) !important;
}

/* Timeline 样式 */
.timeline-content {
    margin-top: 2rem;
}

.timeline-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.timeline-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

.timeline-content-text {
    padding: 2rem;
}

.timeline-content img {
    transition: var(--transition);
}

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

/* Rich Experience 样式 */
.rich-experience-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.experience-items {
    max-width: 1000px;
    margin: 0 auto;
}

.experience-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.8rem;
}

.experience-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.experience-items img {
    transition: var(--transition);
    max-height: 200px;
    object-fit: cover;
    width: 100%;
}

.experience-items img:hover {
    transform: scale(1.03);
}

/* Strengths 页面特定样式 */
.strengths-hero {
    height: 65vh;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.advantages-section {
    background: var(--light-bg);
}

.advantages-content {
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.advantage-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

.advantage-content-text {
    padding: 2rem;
}

.advantages-content img {
    transition: var(--transition);
    max-height: 300px;
    object-fit: cover;
    width: 100%;
}

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

/* Market Forecast 样式 */
.market-forecast-section {
    background: var(--white);
}

.forecast-items {
    max-width: 1200px;
    margin: 0 auto;
}

.forecast-card {
    padding: 2rem 1rem;
    height: 100%;
    transition: var(--transition);
}

.forecast-card:hover {
    transform: translateY(-5px);
}

.forecast-image {
    height: 200px;
    overflow: hidden;
}

.forecast-image img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.forecast-image img:hover {
    transform: scale(1.05);
}

.forecast-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.forecast-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Customer Choice 样式 */
.customer-choice-section {
    background: var(--light-bg);
}

.customer-items {
    max-width: 1200px;
    margin: 0 auto;
}

.customer-card {
    padding: 2rem 1rem;
    height: 100%;
    transition: var(--transition);
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.customer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.customer-image {
    height: 200px;
    overflow: hidden;
}

.customer-image img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.customer-image img:hover {
    transform: scale(1.05);
}

.customer-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.customer-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Partnership 页面特定样式 */
.partnership-hero {
    height: 65vh;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.partnership-content-section {
    background: var(--light-bg);
}

.partnership-items {
    max-width: 1200px;
    margin: 0 auto;
}

.partnership-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.partnership-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

.partnership-content-text {
    padding: 2rem;
}

.partnership-items img {
    transition: var(--transition);
    max-height: 300px;
    object-fit: cover;
    width: 100%;
}

.partnership-items img:hover {
    transform: scale(1.02);
}

/* World-renowned Collaborations 样式 */
.collaborations-section {
    background: var(--white);
}

.collaborations-items {
    max-width: 1200px;
    margin: 0 auto;
}

.collaboration-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.collaboration-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

.collaboration-content-text {
    padding: 2rem;
}

.collaborations-items img {
    transition: var(--transition);
    max-height: 300px;
    object-fit: cover;
    width: 100%;
}

.collaborations-items img:hover {
    transform: scale(1.02);
}

/* Cooperation Results 样式 */
.cooperation-results-section {
    background: var(--light-bg);
}

/* Education 页面特定样式 */
.education-hero {
    height: 65vh;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.beginners-guide-section {
    background: var(--light-bg);
}

/* Market Insights 样式 */
.market-insights-section {
    background: var(--white);
}

.insights-items {
    max-width: 1200px;
    margin: 0 auto;
}

.insight-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.insight-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

.insight-content-text {
    padding: 2rem;
}

.insights-items img {
    transition: var(--transition);
    max-height: 300px;
    object-fit: cover;
    width: 100%;
}

.insights-items img:hover {
    transform: scale(1.02);
}

/* FAQs 样式 */
.faqs-section {
    background: var(--light-bg);
}

.faqs-container {
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px !important;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.accordion-button {
    background: var(--white);
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* RTL (从右到左) 支持 - 阿拉伯语 */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    text-align: right;
}

/* RTL导航栏调整 */
html[dir="rtl"] .nav-container {
    direction: rtl;
}

html[dir="rtl"] .nav-menu {
    direction: rtl;
}

html[dir="rtl"] .nav-logo {
    flex-direction: row-reverse;
}

html[dir="rtl"] .logo-img {
    margin-left: 0.8rem;
    margin-right: 0;
}

html[dir="rtl"] .lang-btn {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-btn i {
    margin-left: 0.5rem;
    margin-right: 0;
}

html[dir="rtl"] .lang-dropdown {
    right: 0;
    left: auto;
}

html[dir="rtl"] .lang-option {
    text-align: right;
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-option img {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* RTL主要内容区域调整 */
html[dir="rtl"] .hero-content {
    text-align: right;
}

html[dir="rtl"] .feature-content {
    text-align: right;
}

html[dir="rtl"] .service-content {
    text-align: right;
}

html[dir="rtl"] .testimonial-card {
    text-align: right;
}

html[dir="rtl"] .contact-info {
    text-align: right;
}

html[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

html[dir="rtl"] .contact-item i {
    margin-left: 0.75rem;
    margin-right: 0;
}

/* RTL表单调整 */
html[dir="rtl"] .form-control {
    text-align: right;
}

html[dir="rtl"] .form-control::placeholder {
    text-align: right;
}

/* RTL按钮调整 */
html[dir="rtl"] .btn {
    text-align: center;
}

/* RTL卡片内容调整 */
html[dir="rtl"] .card-body {
    text-align: right;
}

html[dir="rtl"] .card-title {
    text-align: right;
}

html[dir="rtl"] .card-text {
    text-align: right;
}

/* RTL页脚调整 */
html[dir="rtl"] .footer {
    text-align: right;
}

/* RTL响应式调整 */
@media (max-width: 768px) {
    html[dir="rtl"] .nav-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    html[dir="rtl"] .nav-menu {
        text-align: right;
    }
    
    html[dir="rtl"] .nav-link {
        text-align: right;
    }
}

/* RTL动画和过渡效果保持 */
html[dir="rtl"] .feature-section,
html[dir="rtl"] .service-section,
html[dir="rtl"] .testimonials-section {
    transition: var(--transition);
}

/* RTL悬停效果调整 */
html[dir="rtl"] .testimonial-card:hover {
    transform: translateY(-5px);
}

/* RTL文本对齐调整 */
html[dir="rtl"] .text-center {
    text-align: center !important;
}

html[dir="rtl"] .text-start {
    text-align: right !important;
}

html[dir="rtl"] .text-end {
    text-align: left !important;
}

/* RTL Bootstrap网格调整 */
html[dir="rtl"] .row {
    direction: rtl;
}

html[dir="rtl"] [class*="col-"] {
    direction: rtl;
}

/* RTL间距调整 */
html[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .pe-3 {
    padding-left: 1rem !important;
    padding-right: 0 !important;
}

html[dir="rtl"] .ps-3 {
    padding-right: 1rem !important;
    padding-left: 0 !important;
}

/* 社交媒体链接样式 */
.social-media-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-media-links a {
    display: inline-block;
    transition: var(--transition);
    border-radius: 50%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.social-media-links a:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(30, 58, 138, 0.1);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.social-media-links img {
    transition: var(--transition);
    filter: grayscale(0.3);
}

.social-media-links a:hover img {
    filter: grayscale(0);
}

/* RTL社交媒体链接调整 */
html[dir="rtl"] .social-media-links {
    direction: rtl;
}

html[dir="rtl"] .social-media-links a {
    margin-left: 0.75rem;
    margin-right: 0;
}

html[dir="rtl"] .social-media-links a:last-child {
    margin-left: 0;
}

/* 响应式社交媒体链接 */
@media (max-width: 768px) {
    .social-media-links {
        gap: 0.75rem;
    }
    
    .social-media-links a {
        padding: 0.4rem;
    }
    
    .social-media-links img {
        width: 25px !important;
        height: 25px !important;
    }
}

@media (max-width: 480px) {
    .social-media-links {
        gap: 0.5rem;
    }
    
    .social-media-links img {
        width: 22px !important;
        height: 22px !important;
    }
}
