/* ========================================
   蓝莎迪拜集团网站 - 公共样式文件
   包含：全局样式、导航栏、底部样式
   ======================================== */
@font-face {
    font-family: 'Century';
    src: url('../font/Century-751-BT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ========================================
   公共样式部分 - GLOBAL STYLES
   ======================================== */
/* CSS变量定义 */
:root {
    --primary-color: #000;
    --main-color: #8A1B28;
    --secondary-color: #f8f9fa;
    --text-color: #272828;
    --text-light: #666;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.3s ease;
    --border-radius: 8px;
    --font-family: 'Microsoft YaHei', Arial, sans-serif;
    --bs-nav-link-font-size: 25px;
}

/* 全局重置和基础样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* 通用图片样式 */
img {
    max-width: 100%;
    height: auto;
}

/* 通用链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: #6d0f2a;
}

/* 通用按钮样式 */
.btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #6d0f2a;
    border-color: #6d0f2a;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 通用卡片样式 */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.section-title {
    color: var(--main-color);
    font-weight: 500;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.3rem;
}

/* 通用容器样式 */
.section-padding {
    padding: 80px 0;
}

/* 通用文本样式 */
.text-muted {
    color: var(--text-light) !important;
}

/* 通用间距工具类 */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

/* 响应式容器 */
@media (min-width: 1200px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 1140px;
    }

    .container-xxl {
        max-width: 1140px;
    }

    .navbar-expand-lg .navbar-nav {
        gap: 142px;
    }
}

/* ========================================
   导航栏样式 - NAVIGATION STYLES
   ======================================== */

/* 导航栏样式 */
.navbar {
    background-color: white;
    display: block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding-top: 1.8rem;
    padding-bottom: 0;
    margin-bottom: 40px;
}

/* 第22行div动态显示/隐藏效果 */
.container:first-child {
    transition: all 0.3s ease;
    /*transform: translateY(0);*/
    opacity: 1;
}

.container:first-child.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.navbar-brand img {
    max-height: 60px;
}


.dropdown-item{
    background-color: #FFF !important;
}
.navbar-nav .nav-link {
    color: #272828 !important;
    font-weight: 500;
    transition: color 0.3s ease;
    padding-right: 0px !important;
    padding-left: 0px !important;
    position: relative;
    padding-bottom: 8px !important;
}

.navbar-nav .nav-link:hover {
    color: var(--main-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--main-color) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--main-color);
    border-radius: 1px;
}

.language-selector {
    display: flex;
    align-items: center;
    /*gap: 10px;*/
}

.language-selector img {
    width: 18px;
    height: 18px;
}

.language-selector .dropdown-toggle {
    border: none;
    background: none;
    color: #333;
    font-weight: 500;
    font-size: 20px;
}

.language-selector .dropdown-toggle:focus {
    box-shadow: none;
}

.navbar-container {
    margin-top: 0px;
}

/* ========================================
   底部样式 - FOOTER STYLES
   ======================================== */

/* Footer Section */
.footer-section {
    background-color: #F6F5F1;
    padding: 80px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    gap:55px;
    align-items: flex-start;
}

/* Footer Left - Two QR Codes */
.footer-left {
    flex: 0 0 107px;
    text-align: center;
}

.qr-codes {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.94rem;
}

.qr-code {
    flex: 0 0 auto;
}

.qr-code img {
    width: 107px;
    height: 107px;
}

.qr-code .qr-text {
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Footer Center - Phone and Office Locations */
.footer-center {
    flex: 1;
}
.tel-img{
    font-weight: bold;
    height: 18px;
    font-size: 12px;
    width: 18px;
    position: absolute;
    margin-top: -10px;
    margin-left: -5px;
    text-align: center;
    border-radius: 100px;
    color: #FFF;
    background-color: #272828;
}


.phone-number {
    font-size: 51px;
    font-weight: bold;
    line-height: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid;
    margin-bottom: 20px;
}

.phone-icon {
    font-size: 20px;
}

.phone-text {
    color: #c41e3a;
}

.office-locations {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.location-item {
    display: flex;
    font-size: 0.88rem;
    line-height: 1.3;
}

.location-label {
    font-weight: bold;
    color: #1A1A1A;
    white-space: nowrap;
}

.location-text {
    color: #1A1A1A;
    font-weight: bold;
}

/* Footer Right - Awards */
.footer-right {
    flex: 0 0 380px;
}

.awards-section {
    display: flex;
    justify-content: center;
    margin-top: -78px;
    gap: 15px;
    margin-bottom: 36px;
}

.award-item {
    width: 50px;
}

.award-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-description {
    font-size: 0.88rem;
    font-weight: bold;
    line-height: 1.7;
    color: #1A1A1A;
}

.footer-description p {
    margin: 0 ;
}


/* 分页样式 */
.custom-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #666;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #8B0000;
    color: #8B0000;
    background: #f8f8f8;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-number {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.pagination-number:hover {
    border-color: #8B0000;
    color: #8B0000;
    background: #f8f8f8;
}

.pagination-number.active {
    background: #8B0000;
    border-color: #8B0000;
    color: white;
}

.pagination-dots {
    color: #666;
    font-size: 16px;
    margin: 0 5px;
}

/* Pagination */
.pagination {
    margin-top: 50px;
}

.page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-item.active .page-link {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background: #f8f9fa;
    border-color: #dee2e6;
}

.more-button {
    display: flex;
    justify-content: center;
}

.more-button .btn {
    background-color: var(--main-color);
    border: none;
    color: white;
    border-radius: 30px;
    font-weight: 300;
    font-size: 22px;
    padding: 8px 10px 8px 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.more-button .btn .more-icon {
    width: 45px;
    height: 45px;
    margin-left: 10px;
}


/* 联系我们部分样式 */
.contact-section {
    padding-bottom: 50px;
}

.contact-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    color: #c41e3a;
    margin-bottom: 50px;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: #ffffff;
    padding: 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 0.94rem 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.1);
}

.form-control::placeholder {
    color: #999;
    font-size: 1rem;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 40px;
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.submit-btn:hover {
    background-color: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

/* ========================================
   移动端响应式样式 - MOBILE RESPONSIVE
   ======================================== */

/* 移动端导航栏样式 */
@media (max-width: 992px) {
    .navbar {
        padding: 1rem 0;
    }

    .navbar-brand img {
        min-height: 40px;
    }

    .navbar-container {
        margin-top: 20px;
    }

    .language-selector img {
        width: 25px;
        height: 25px;
    }

    .language-selector {
        gap: 8px;
    }

    .language-selector .dropdown-toggle {
        font-size: 18px;
    }

    .navbar-collapse {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .navbar-nav {
        gap: 0;
    }

    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        font-size: 18px;
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }

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

/* 移动端底部样式 */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    :root {
        width: 100%;
        overflow-x: hidden;
    }

    .navbar {
        display: flex;
        flex-flow: nowrap;
        padding: 0 0.5rem;
        margin-bottom:0;
    }
    
    .navbar .container{
        padding-left: 0;
        gap: 50px;
    }

    /* 导航栏响应式 */
    .navbar-brand img {
        height: auto;
        width: 150px;
        object-fit: cover;
        max-width: none;
        min-height: auto;
    }

    .navbar-container {
        margin-top: 0;
        flex-direction: row-reverse;
    }

    .language-selector img {
        width: 20px;
        height: 20px;
    }

    .language-selector {
        justify-content: center;
    }

    .language-selector .dropdown-toggle {
        font-size: 16px;
        padding: 0;
    }
    
    .footer-description p {
        font-size: 14px;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 9999;
    }

    .navbar-nav .nav-link {
        text-align: center;
    }

    .navbar-nav .nav-link.active {
        background-color: #f5f4ef;
    }

    .navbar-nav .nav-link.active::after {
        height: 0;
    }

    .navbar-nav {
        width: 100%;
    }

    .mt-5 {
        margin-top: 1rem !important;
    }

    .mb-5 {
        margin-bottom: 1rem !important;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        flex: none;
        width: 100%;
    }
    
    .tel-img {
        margin-top: 0px;
        margin-left: 50px;
    }
    .qr-codes {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .footer-section {
        padding: 40px 0;
    }

    .qr-code img {
        width: 80px;
        height: 80px;
    }

    .office-locations {
        gap: 10px;
    }

    .location-label {
        font-size: 14px;
    }

    .footer-description {
        font-size: 12px;
        text-align: center;
    }

    .phone-number {
        font-size: 36px;
        margin-bottom: 15px;
        padding-bottom: 5px;
    }

    .location-item {
        justify-content: center;
        font-size: 14px;
    }

    .location-text {
        font-size: 14px;
    }

    .location-label {
        margin-right: 8px;
    }

    /* 容器响应式 */
    .container-fluid {
        padding: 0 10px;
    }


    /* 底部响应式 */
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        flex: none;
        width: 100%;
        padding: 0 10px;
    }

    .qr-codes {
        flex-direction: row;
        gap: 40px;
    }

    .footer-section {
        padding: 30px 0;
    }

    .qr-code img {
        width: 60px;
        height: 60px;
    }

    .office-locations {
        gap: 4px;
    }

    .location-label {
        width: auto;
        font-weight: bold;
    }

    .award-item {
        width: 40px;
        height: 64px;
    }

    .footer-description {
        font-size: 16px;
        text-align: center;
    }

    .phone-number {
        font-size: 22px;
    }

    .awards-section {
        display: none;
    }

    .award-item {
        width: 35px;
        height: 56px;
    }

    .location-item {
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .location-text {
        white-space: wrap;
        text-align: left;
        font-weight: 400;
    }

    .location-label {
        margin-bottom: 2px;
    }


    .more-button .btn {
        font-size: 1.3rem;
        padding: 5px 8px 5px 15px;
    }

    .more-button .btn .more-icon {
        width: 2rem;
        height: 2rem;
        margin-left: 0.5rem;
    }

    /* 联系我们响应式设计 */
    .contact-section {
        padding: unset;
        padding-bottom: 50px;
    }

    .contact-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .contact-form-container {
        max-width: 350px;
        margin-top: 30px;
    }

    .form-control {
        padding: 12px 0.94rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 10px 30px;
        font-size: 1rem;
    }

}

@media (max-width: 480px) {
    .footer-section {
        padding: 30px 0;
    }

    .qr-codes {
        gap: 15px;
    }

    .qr-code img {
        width: 70px;
        height: 70px;
    }

    .phone-number {
        font-size: 28px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 0.1rem;
    }

    .section-title h2 {
        font-size: 1.3rem;
    }
}