/* style.css */
:root {
    --primary-red: #d32f2f; /* 科技感红色 */
    --dark-red: #b71c1c;
    --light-red: #ffebee;
    --dark-gray: #333;
    --light-gray: #f5f5f5;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark-gray);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 1400;
    color: var(--primary-red);
    text-decoration: none;
}

.logo-text i {
    margin-right: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: var(--dark-gray);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--primary-red);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    cursor: pointer;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 10rem 1rem;
    margin-top: 70px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-red);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
}

/* 通用版块 */
.section {
    padding: 5rem 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    color: var(--dark-gray);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.bg-light {
    background-color: var(--light-gray);
}

/* 关于我们 */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.about-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.about-image img:hover {
    transform: scale(1.03);
}

/* 服务 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

/* 联系我们 */
.contact-wrapper {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.contact-details {
    list-style: none;
    margin-top: 2rem;
}

.contact-details li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
}

.contact-details i {
    color: var(--primary-red);
    margin-right: 15px;
    margin-top: 4px;
    min-width: 20px;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    align-self: flex-start;
}

.form-notice {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}

/* 页脚 */
.footer {
    background: var(--dark-gray);
    color: #aaa;
    text-align: center;
    padding: 2.5rem 1rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    margin: 0 0.5rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content, .contact-wrapper {
        flex-direction: column;
        gap: 3rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid #eee;
    }
    .menu-toggle {
        display: block;
    }
    .hero {
        padding: 7rem 1rem;
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}