/* 重置样式 */
.sn-reservation * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sn-reservation {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
}

/* 头部样式 */
.sn-reservation .header {
    background-image: url('../images/factory.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 20px;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.sn-reservation .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.sn-reservation .header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 1000px;
    width: 100%;
    padding: 30px 20px;
}

/* 删除所有重复的 .language-selector 相关样式，只保留这一个统一的定义 */
.language-selector {
    display: inline-flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    margin: 10px auto;
}

.language-selector a {
    text-decoration: none;
    color: #ffffff;
    padding: 8px 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    transition: background-color 0.2s ease;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    white-space: nowrap;
    box-sizing: border-box;
}

.language-selector a:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.language-selector a.active {
    background-color: #ffffff;
    color: #333;
    border-color: #ffffff;
    pointer-events: none;
}

.language-selector a.active:hover {
    background-color: #f8f8f8;
    transform: none; /* 激活状态下不需要hover效果 */
}

.logo {
    margin-bottom: 10px;  /* 减小logo底部间距 */
    transition: transform 0.3s ease;
}

.title {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;  /* 减小标题内部间距 */
}

.exhibition-info {
    margin: 8px 0;  /* 减小展会信息的上下间距 */
}

.exhibition-title {
    margin-bottom: 5px;  /* 减小展会标题底部间距 */
}

.exhibition-name {
    margin: 3px 0;  /* 减小展会名称上下间距 */
}

.form-title {
    margin-top: 5px;  /* 减小表单标题顶部间距 */
}

.language-selector {
    margin-top: 10px;  /* 减小语言选择器顶部间距 */
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.title {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-name {
    font-size: 36px;
    color: #333;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.exhibition-info {
    margin: 15px 0;
}

.exhibition-title {
    font-size: 24px;
    color: #444;
    font-weight: 600;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto 10px;
}

.exhibition-name {
    font-size: 20px;
    color: #007bff;
    font-weight: 500;
    margin: 5px 0;
}

.form-title {
    font-size: 22px;
    color: #666;
    font-weight: 500;
    margin-top: 10px;
}

.language-selector {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.language-selector a {
    padding: 8px 15px;
    text-decoration: none;
    color: #333;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid #ddd;
}

.language-selector a:hover {
    background-color: #e0e0e0;
    color: #000;
}

.language-selector a.active {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.language-selector a.active:hover {
    background-color: #0056b3;
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    width: fit-content;
}

.language-selector a {
    text-decoration: none;
    color: #ffffff;
    padding: 8px 20px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.language-selector a:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.language-selector a.active {
    background-color: #ffffff;
    color: #333;
    border-color: #ffffff;
}

.language-selector a.active:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.language-selector a {
    text-decoration: none;
    color: #666;
    padding: 8px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    background-color: #f5f5f5;
}

.language-selector a:hover {
    background-color: #e0e0e0;
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #000;
}

.language-selector a.active {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.language-selector a.active:hover {
    background-color: #0056b3;
    border: 2px solid #ddd;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

.language-selector a:hover {
    background-color: #f5f5f5;
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.language-selector a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        padding: 20px 15px;
    }

    .logo img {
        height: 60px;
    }

    .company-name {
        font-size: 28px;
    }

    .exhibition-title {
        font-size: 20px;
    }

    .exhibition-name {
        font-size: 18px;
    }

    .form-title {
        font-size: 18px;
    }

    .language-selector a {
        padding: 6px 15px;
        font-size: 14px;
    }
}

/* 表单容器 */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.sn-reservation select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
}

.sn-reservation button[type="submit"] {
    background-color: #007bff;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s ease;
}

.sn-reservation button[type="submit"]:hover {
    background-color: #0056b3;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
}

button:hover {
    background-color: #0056b3;
}

/* 页脚样式 */
.footer {
    background-color: #f8f9fa;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    text-align: center;
    margin-bottom: 30px;
    color: #6c757d;
}

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

.contact-section {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.contact-section:hover {
    transform: translateY(-5px);
}

.contact-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #343a40;
}

.contact-title i {
    margin-right: 10px;
    color: #007bff;
    font-size: 1.2em;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contact-link {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-link:hover {
    color: #007bff;
}

.contact-name {
    font-weight: 500;
    margin-right: 5px;
}

/* 手机端优化 */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-section {
        padding: 15px;
    }
    
    .contact-title {
        font-size: 16px;
    }
    
    .contact-details {
        gap: 8px;
    }
    
    .contact-link {
        font-size: 14px;
    }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link i {
    margin-right: 8px;
    font-size: 1.2em;
}

/* 为不同的社交媒体设置不同的背景色 */
.social-link:nth-child(1) {
    background-color: #1877f2; /* Facebook蓝 */
}

.social-link:nth-child(2) {
    background-color: #1da1f2; /* Twitter蓝 */
}

.social-link:nth-child(3) {
    background-color: #0a66c2; /* LinkedIn蓝 */
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0.9;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }
    
    .social-link {
        justify-content: center;
    }
}

.contact-info p {
    margin: 5px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contact-info span {
    display: inline-block;
    padding: 0 10px;
    position: relative;
}

.contact-info span:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -10px;
    color: #666;
}

@media (max-width: 768px) {
    .contact-info p {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-info span {
        padding: 5px 0;
    }
    
    .contact-info span:not(:last-child)::after {
        display: none;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        height: auto; /* 在移动端取消固定高度 */
        flex-direction: column;
        gap: 15px;
        padding: 30px 20px;
    }
    
    .container {
        margin: 20px;
        padding: 20px;
    }
}

.contact-section.address-section {
    text-align: center;
}

.contact-section.address-section .contact-title {
    justify-content: center;
}

.contact-section.address-section .contact-details {
    align-items: center;
}

.full-address {
    text-align: center;
    display: inline-block;
    margin: 0 auto;
}

.addthis-section {
    margin-top: 30px;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}
