/* common.css - 所有页面通用样式 */

:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --secondary-color: #00b4d8;
    --accent-color: #ff9e00;
    --dark-color: #1a2b4c;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --sea-blue-light: #e6f2ff;
    --sea-blue-medium: #b3d9ff;
    --sea-blue-dark: #0066cc;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* 导航栏相关变量 */
    --navbar-height: 100px;
    --navbar-bg-color: rgba(255, 255, 255, 0.95);
    --navbar-scroll-bg-color: rgba(255, 255, 255, 0.98);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f8ff;
    overflow-x: hidden;
    padding-top: var(--navbar-height) !important;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--sea-blue-dark);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--sea-blue-dark);
    border: 2px solid var(--sea-blue-dark);
}

.btn-outline:hover {
    background-color: var(--sea-blue-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ===== 统一导航栏样式 ===== */
.main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: var(--navbar-height) !important;
    z-index: 1000 !important;
    background-color: var(--navbar-bg-color) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    transition: var(--transition) !important;
}

.header-container {
    height: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 20px !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.logo-text .slogan {
    font-size: 0.85rem;
    color: var(--sea-blue-dark);
    font-style: italic;
}

/* 导航菜单 */
nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    padding: 5px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--sea-blue-dark);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--sea-blue-dark);
}

/* 语言切换器 */
.language-switcher {
    display: flex;
    gap: 10px;
    margin-left: 40px;
}

.lang-btn {
    padding: 6px 15px;
    border-radius: 20px;
    background-color: transparent;
    border: 1px solid var(--light-gray);
    color: var(--gray-color);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--sea-blue-dark);
    color: var(--white);
    border-color: var(--sea-blue-dark);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: var(--navbar-height) !important;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
        gap: 25px;
    }
    
    nav ul.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .language-switcher {
        margin-left: 0;
        margin-top: 20px;
        justify-content: center;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 70px 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    nav ul {
        padding: 20px;
    }
}

/* ===== 页面顶部通用样式 ===== */
.page-top-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* 首页英雄区域特殊处理 */
.hero.page-top-section {
    padding-top: 80px;
    padding-bottom: 120px;
}

/* ===== Footer通用样式 ===== */
footer {
    background: linear-gradient(135deg, #1a2b4c 0%, #2c3e6e 100%);
    color: var(--white);
    padding-top: 80px;
    padding-bottom: 40px;
    position: relative;
    margin-top: 100px;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--sea-blue-dark), var(--accent-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item-footer {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item-footer i {
    color: var(--accent-color);
    margin-top: 3px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}