// File: css/styles.css
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #334155;
    line-height: 1.6;
    background-color: #f1f5f9;
    transition: background 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    margin-bottom: 60px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

p {
    margin-bottom: 20px;
    color: #64748b;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* 导航栏 */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* 在 css/styles.css 中找到 .logo 样式，替换为以下内容 */

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
   /* display: block;*/
}

/* 如果原来有 .logo i 样式，可以保留或删除 */
.logo i {
    display: none;  /* 隐藏原来的云图标 */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1;
    top: 100%;
    left: 0;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--secondary);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 语言切换 */
.lang-switcher {
    margin-left: 20px;
    position: relative;
}

.lang-btn {
    background: #f1f5f9;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: #e2e8f0;
}

/* ============================================ */
/* 页脚样式 - 完整控制 */
/* ============================================ */
footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* 页脚每个区块的标题 */
.footer-section h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* 页脚描述文字 */
.footer-section > p {
    color: #cbd5e1 !important;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 快速链接列表样式 */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

/* 快速链接 - 正常状态 */
.footer-links li a {
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 400;
    display: inline-block;
}

/* 快速链接 - 悬停状态 */
.footer-links li a:hover {
    color: var(--primary) !important;
    transform: translateX(5px);
}

/* 联系信息容器 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 联系信息每一行 */
.contact-info div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* 联系信息图标 */
.contact-info i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 3px;
    width: 20px;
}

/* 联系信息文字 */
.contact-info div span {
    color: #cbd5e1 !important;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* 社交图标区域 */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.social-icons a i {
    font-size: 1.1rem;
}

/* 页脚底部区域 */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 版权信息 */
.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 底部链接容器 */
.footer-bottom > div {
    margin-top: 15px;
}

/* 底部链接（隐私政策、服务条款） */
.footer-bottom a {
    color: #94a3b8 !important;
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

.footer-bottom a:hover {
    color: var(--primary) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
		.logo img {
        height: 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h3 {
        text-align: center;
    }
    
    .contact-info div {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-links li a:hover {
        transform: translateX(0);
    }
}

/* ============================================ */
/* 首页样式 */
/* ============================================ */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.05)" points="0,100 100,0 100,100"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero h1 {
    color: white;
    margin-bottom: 20px;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

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

/* 服务概览 */
.services-overview {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* 合作伙伴 */
.partners {
    background: #f1f5f9;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-logo {
    background: white;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-height: 50px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* 服务页面 */
.services-page .hero {
    padding: 150px 0 80px;
    text-align: center;
}

.services-page .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-detail {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .service-detail {
        flex-direction: row;
        min-height: 400px;
    }
    
    .service-detail:nth-child(even) {
        flex-direction: row-reverse;
    }
}

.service-detail-img {
    flex: 1;
    min-height: 300px;
}

.service-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-detail-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* 联系我们页面 */
.contact-page .hero {
    padding: 150px 0 80px;
    text-align: center;
}

.contact-page .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-info-box {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-info-box h3 {
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 1.8rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.5rem;
    min-width: 30px;
}

.contact-form {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.map-container {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 页面容器 */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* 服务特定样式 */
.service-visual {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin: 30px 0;
    background-size: cover;
    background-position: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary);
}

.feature-card h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--secondary);
    font-weight: 600;
}

/* About Page Specific */
.about-content {
    background: white;
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    text-align: left;
    margin-bottom: 20px;
}
.about-section h2:after {
    left: 0;
    transform: none;
    margin-left: 0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-image {
        position: relative;
        width: 100%;
        max-width: 100%;
        transform: none;
        margin-top: 50px;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        margin-top: 10px;
        background: #f8fafc;
        border-radius: 8px;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
}

@media (max-width: 768px) {
	  .logo img {
        height: 32px;
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 10px 0;
    }
    
    .nav-links li a {
        display: block;
        padding: 15px;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        margin-top: 10px;
        background: #f8fafc;
        border-radius: 8px;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    section {
        padding: 60px 0;
    }
    
    .lang-switcher {
        margin: 15px auto;
        width: 100%;
        text-align: center;
    }
    
    /* 移动端页脚样式调整 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h3 {
        text-align: center;
    }
    
    .contact-info div {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
	
		.logo img {
        height: 28px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 130px 0 60px;
    }
    
    .service-detail-content {
        padding: 25px;
    }
    
    .about-content {
        padding: 25px;
    }
}