/* css/style.css */
:root {
    --primary: #0a4b6e;
    --primary-dark: #083a54;
    --secondary: #c9a959;
    --dark: #1e2a36;
    --light: #f8fafc;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: #2d3e4f;
    line-height: 1.7;
    padding-top: 0;
}

h1, h2, h3, h4, .brand-en {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* navigation */
.navbar {
    transition: background-color 0.3s ease;
    padding: 1.2rem 0;
    background-color: transparent;
}
.navbar-scrolled {
    background-color: rgba(10, 75, 110, 0.95) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    margin: 0 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--secondary);
}
.brand-en {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
}
.brand-ltd {
    font-size: 1rem;
    font-weight: 300;
    color: var(--secondary);
    margin-left: 0.2rem;
}

/* hero */
.hero {
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}
.hero .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10,75,110,0.8) 0%, rgba(0,0,0,0.6) 100%);
}
.hero .container {
    position: relative;
    z-index: 2;
}

/* section titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--secondary);
    margin: 1rem auto 0;
}
.text-start.section-title:after {
    margin-left: 0;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #6c7a8a;
}

/* service cards */
.service-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 1px solid #edf2f7;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(10,75,110,0.1);
    border-color: var(--primary);
}
.icon-box {
    color: var(--primary);
}

/* case cards */
.case-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.case-card img {
    transition: transform 0.5s;
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.case-card:hover img {
    transform: scale(1.05);
}
.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(30%);
    transition: transform 0.4s;
}
.case-card:hover .case-overlay {
    transform: translateY(0);
}
.case-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.case-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* contact overlay */
.overlay-light {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.85);
}

/* case detail pages */
.case-detail-header {
    background-size: cover;
    background-position: center;
}

/* language switcher */
.lang-switch {
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 0.5rem !important;
}
#lang-en, #lang-zh {
    cursor: pointer;
    padding: 0.3rem 0.6rem;
}
#lang-en.active, #lang-zh.active {
    background-color: var(--secondary);
    border-radius: 4px;
    color: #000 !important;
}

/* responsive */
@media (max-width: 992px) {
    .navbar-collapse {
        background: var(--primary-dark);
        padding: 1rem;
        border-radius: 8px;
    }
    .lang-switch {
        border-left: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}
/* ========== 背景图片修复 ========== */

/* 深色叠加层 - 用于联系区域 */
.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 深色半透明，让白色文字可见 */
    z-index: 1;
}

/* 联系区域的白色卡片需要更高层级 */
#contact .bg-white {
    position: relative;
    z-index: 3;
    border: none;
}

/* 英雄区确保图片显示 */
.hero {
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,75,110,0.7) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* 确保所有背景图片都正确显示 */
[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* 添加背景图片调试边框（开发完成后可以删除） */
/* 这个可以帮助你确认图片是否加载 */
[style*="background-image"] {
    /* 临时边框，如果图片加载失败会显示边框 */
    /* border: 2px solid red; */
}

/* 图片加载失败时的后备色 */
img {
    background-color: #1e2a36; /* 深灰色占位 */
}
/* ========== 联系表单样式 ========== */

/* 左侧信息区域 */
.bg-primary {
    background: linear-gradient(135deg, #0a4b6e 0%, #1c4e6f 100%) !important;
}

/* 表单输入框样式 */
.form-control, .form-select {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #0a4b6e;
    box-shadow: 0 0 0 0.2rem rgba(10, 75, 110, 0.25);
}

.form-label {
    font-weight: 500;
    color: #2d3e4f;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

/* 提交按钮 */
.btn-primary {
    background: #0a4b6e;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #083a54;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 75, 110, 0.3);
}

/* 社交链接 */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* 复选框样式 */
.form-check-input:checked {
    background-color: #0a4b6e;
    border-color: #0a4b6e;
}

/* 成功消息动画 */
.alert-success {
    background: #d4edda;
    color: #155724;
    border: none;
    border-radius: 8px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    #contact .bg-primary {
        padding: 2rem !important;
    }
    
    #contact .bg-white {
        padding: 2rem !important;
    }
    
    .social-links {
        margin-bottom: 2rem;
    }
}