/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #1a1a2e;
    background-image: url('images/backimage.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

/* 容器样式 */
.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo样式 */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    align-items: center;
    /* 移除uppercase，保持原始格式 */
    letter-spacing: 1px;
}

/* Logo图片样式 */
.logo img {
    max-height: 50px;
    margin-right: 8px;
}

/* Logo文本样式 */
.logo span {
    font-size: 1.2rem;
}

/* 表单消息样式 */
.form-message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 14px 38px;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.btn-primary:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
}

/* 导航栏样式 */
.navbar {
    background-color: transparent !important;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: none !important;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: #4a90e2;
}

.nav-links a.active {
    color: #4a90e2;
    font-weight: bold;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4a90e2;
}

/* 首页横幅样式 */
.hero {
    padding: 200px 0 150px;
    margin-top: 0;
    display: flex;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    width: 45%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    transform: scale(1.05);
    object-fit: cover;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-text {
    width: 55%;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #d0d0d0;
    font-style: normal;
    opacity: 0.9;
    line-height: 1.5;
    font-weight: 300;
}

/* 公司简介样式 */
.about-section {
    padding: 120px 0 40px;
    background-color: transparent;
    margin: 0;
    position: relative;
    z-index: 1;
}

.about-section .container {
    display: block;
    align-items: normal;
    justify-content: normal;
}

/* 项目展示样式 */
.projects-section {
    padding: 120px 0 40px;
    background-color: transparent;
    margin: 0;
    position: relative;
    z-index: 1;
}

.projects-section .container {
    display: block;
    align-items: normal;
    justify-content: normal;
}

.projects-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin: 40px 0;
}

.project-item {
    text-align: center;
    flex: 0 0 auto;
    width: 250px;
}

.project-item img {
    border-radius: 8px;
    margin-bottom: 15px;
    max-width: 100%;
    height: auto;
}

.project-item p {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
}

.connection-points {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.point-connector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.point {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.point.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    display: block;
    width: 100%;
    clear: both;
    float: none !important;
    position: static;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-header h2 {
    font-size: 2rem;
    color: #ffffff;
    margin: 0;
    font-weight: 600;
    display: block;
    width: 100%;
    text-align: center;
}

.about-content {
    line-height: 1.8;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
    clear: both;
    float: none !important;
    position: static;
}

.about-content p {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1rem;
    text-align: justify;
}

.about-footer {
    margin-top: 40px;
    text-align: center;
}

.about-footer a {
    color: #4a90e2;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.about-footer a:hover {
    color: #ffffff;
}

.about-footer span {
    color: #666;
}

/* 联系我们样式 */
.contact-section {
    padding: 80px 0;
    background-color: transparent;
    margin: 40px 0;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.contact-left {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    /* 使用contain替代cover，确保图片完整显示不被裁剪 */
}

.contact-right {
    width: 40%;
    padding: 20px;
    color: #ffffff;
}

.contact-right h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.contact-right p {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #ffffff;
}

/* 项目展示样式 */
.projects-section {
    background-color: transparent;
    padding: 80px 0;
}

.projects-section .container {
    display: block;
}

.projects-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.project-item {
    width: 30%;
    text-align: center;
    position: relative;
}

.project-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-info {
    margin-top: 15px;
}

.project-info h3 {
    color: #fff;
    margin-bottom: 10px;
}

.project-info p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* 连接点样式 */
.connection-points {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.connection-point {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4a90e2;
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.connection-point:hover,
.connection-point.active {
    opacity: 1;
    transform: scale(1.2);
}

/* 加入我们页面样式 */
.join-section {
    background-color: transparent;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.join-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.join-header {
    width: 50%;
    text-align: left;
}

.join-header h1 {
    font-size: 3.2rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.1;
}

.join-header h2 {
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 300;
    line-height: 1.2;
}

.join-form {
    width: 40%;
    background-color: rgba(26, 26, 46, 0.3);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.join-form form {
    width: 100%;
}

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

.form-group label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.join-button {
    width: 100%;
    padding: 12px 0;
    background-color: #4a90e2;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.join-button:hover {
    background-color: #3a7bc8;
}

/* 页脚样式 */
.footer {
    background-color: #000000;
    padding: 20px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-links span {
    color: #ffffff;
}

.footer-copyright p {
    color: #ffffff;
}

.footer-copyright a {
    color: #ffffff;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* 确保内容不被固定的页脚遮挡 */
body {
    padding-bottom: 100px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image,
    .hero-text {
        width: 100%;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info,
    .contact-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links a {
        margin: 0 15px;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .section-header h2,
    .contact-info h2,
    .projects-section h2 {
        font-size: 1.5rem;
    }
}