@font-face {
    font-family: serif-h2;
    src: url('fonts/andlso.woff') format('woff');
}

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #3a86ff;
    --accent-color: #ff6b35;
	--alert-color: #e11111;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* 为顶部栏和导航栏留出空间 */
}

h1{
	
}

h2{
	font-family:serif;
}
	
h3{
}

p {
	font-family: serif;
}

/* 顶部栏 */
.top-bar {
    background-color: #000;
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
	height:45px;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bureau-name{
	font-weight:bolder;
}

.social-top {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon.whatsapp:hover {
    color: #25D366;
}

.social-icon.telegram:hover {
    color: #0088cc;
}

.social-icon.email i{
    color: var(--alert-color);
}
.social-icon.email span{
	font-family: serif-h2;
}

.social-icon.phone i{
    color: var(--accent-color);
}

.social-icon.phone span{
	font-family: serif-h2;
}

/* 通用样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background-color: var(--accent-color);
	border-radius: 25px;
}

/* 导航栏 */
header {
    position: fixed;
    top: 45px; /* 顶部栏高度 */
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

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

.logo img {
	width:150px;
	height:auto;
    margin-right: 10px;
    color: var(--accent-color);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--dark-color);
    cursor: pointer;
    z-index: 1002;
}

/* Hero 区域 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('images/banner.webp');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: -80px; /* 抵消body的padding-top */
}

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

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 服务介绍 */
.services {
    background-color: var(--light-color);
}

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

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.service-icon {
    background-color: var(--primary-color);
    color: white;
    font-size: 2.5rem;
    padding: 25px;
    text-align: center;
}

.service-content {
    padding: 25px;
	text-align:center;
}

.service-content h3 {
	text-align:center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 合作流程 */
.process {
    background-color: white;
}

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

.process-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 30px 20px;
    position: relative;
    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.process-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.process-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.process-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* 语言板块 */
.languages {
    background-color: white;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.language-card {
	display:flex;
	align-items: center;
    flex-direction: column;
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.language-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.language-flag {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.language-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* 计价器 */
.calculator {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.calculator h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.input-group {
    margin-bottom: 20px;
}

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

.select-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.select-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
}

.page-input-row {
    margin-bottom: 25px;
}

.page-input {
    width: 100%;
}

.page-input input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
}

.page-note {
    text-align: center;
    margin-bottom: 25px;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.result {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border-left: 5px solid var(--accent-color);
}

.result h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

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

.price-details {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
	text-indent:2em;
	text-align:justify;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 联系我们 */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    text-align: center;
}

.contact-info p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: var(--gray-color);
}

.contact-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-item {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 30px;
    text-align: left;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.contact-icon {
    background-color: var(--primary-color);
    color: white;
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.contact-details p {
    margin-bottom: 5px;
    text-align: left;
    font-size: 1rem;
    color: var(--dark-color);
}

.contact-note {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-style: italic;
    margin-top: 5px;
}

/* 页脚 */
footer {
    background-color: var(--dark-color);
    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-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
}
.footer-column p{
	text-align:justify;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
	font-family: serif;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a.btn{
	margin: 0 10px 10px 0;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .languages-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    body {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {	
    .top-bar-content {
        gap: 8px;
        text-align: center;
    }
	
    .nav-links {
        position: fixed;
        top: 123px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
	
	.languages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .calculator {
        padding: 25px;
    }
    
    .select-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-items {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-details p {
        text-align: center;
    }
    
    body {
        padding-top: 60px;
    }
	
	.top-bar-content {
		justify-content: flex-end;
	}
	
	.bureau-name, .social-icon.email span{
		display:none;
	}
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .calculator {
        padding: 20px;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-bar {
        font-size: 0.8rem;
        padding: 6px 0;
    }
	
    body {
        padding-top: 50px;
    }
}

/* 咨询消息样式 */
.consult-message {
    background-color: #fff8e1;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border-left: 5px solid #ff9800;
    margin-top: 20px;
}

.consult-message h4 {
    margin-bottom: 15px;
    color: #e65100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.consult-message p {
    margin-bottom: 10px;
    color: #333;
}

.consult-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.consult-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.consult-contact-item i {
    color: var(--primary-color);
}

/* 限制语言选择器的选项 */
#source-language option, #target-language option {
    font-weight: normal;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .consult-contact {
        flex-direction: column;
        gap: 10px;
    }
}

.contact-form-wrapper { max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 25px; }
.form-group label { display:block; margin-bottom:8px; font-weight:600; color:var(--primary-color); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44,90,160,0.1);
}
.form-checkbox{
	display:flex;
	align-items: center;
	justify-content: flex-start;
}
.form-checkbox input{
	width:0.6em;
	margin:0;
	padding:0;
}
.form-checkbox label{
	margin:0 0 0 5px;
	font-size: 15px;
	line-height: 1.4;
}

/* 表单验证样式 */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #dc3545 !important;
}

.form-group input.valid:not(:placeholder-shown),
.form-group textarea.valid:not(:placeholder-shown) {
    border-color: #28a745;
}

.field-error {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
}

.field-error i {
    margin-right: 5px;
}

/* 成功消息样式 */
.message-alert.success {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.policy{
	text-decoration:none;
	color:var(--primary-color);
}
.policy:hover{
	color:var(--alert-color);
}

/* 语言切换下拉菜单样式 */
.language-switcher {
    display: inline-block;
    position: relative;
    margin-right: 10px;
}

.language-dropdown {
    position: relative;
}

.language-dropdown-toggle {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: space-between;
	height:28px;
}

.language-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-dropdown-toggle .flag-icon {
    margin-right: 6px;
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

.language-dropdown-toggle i {
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.language-dropdown-menu.show {
    display: block;
}

.language-dropdown-item {
    display: flex;
    align-items: center;
	justify-content: center;
    padding: 10px 12px;
    background-color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 0.5px dotted #f0f0f0;
}

.language-dropdown-item:last-child {
    border-bottom: none;
}

.language-dropdown-item:hover {
    background-color: #69d72894;
}

.language-dropdown-item .flag-icon {
    width: 16px;
    height: 12px;
    border-radius: 2px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-switcher {
        margin-right: 5px;
        order: -1; /* 在移动端将语言选择器放在最前面 */
    }
    
    .language-dropdown-toggle {
        padding: 5px 8px;
        font-size: 13px;
    }
}

/* 调整顶部栏布局，使语言选择器在移动端正确显示 */
@media (max-width: 768px) {    
    .language-switcher {
        margin-bottom: 5px;
        margin-right: 10px;
    }
}