/* 全局样式 */
:root {
    --primary-color: #0b2490;
    --secondary-color: #4b5a9e;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --accent-color: #3a86ff;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --text-color: #333;
    --text-light: #666;
    --border-color: #b0b0b0;
    --border-width: 2px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.18);
    --transition: all 0.3s ease;
    --border-radius: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #0b2490 0%, #1a36c6 100%);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.1);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.logo-placeholder i {
    font-size: 32px;
    color: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

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

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

/* 英雄区域 */
.hero {
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 100px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9) 1px, transparent 1px, transparent 30px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9) 1px, transparent 1px, transparent 30px);
    background-size: 30px 30px;
    animation: backgroundMove 15s linear infinite;
    transform: rotate(45deg);
    z-index: 0;
    box-shadow: inset 0 0 150px rgba(58, 134, 255, 0.5);
    will-change: background-position;
}
 

@keyframes backgroundMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -30px -30px;
    }
}

/* backgroundMoveReverse animation removed as unused */

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border: var(--border-width) solid transparent;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

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

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: var(--border-width) solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 通用节样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.section-divider {
    width: 80px;
    height: var(--border-width);
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 0;
    animation: grow 1s ease-out;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: var(--border-width);
    background: var(--primary-color);
    transform: translateY(-50%);
}

.section-divider::before {
    left: -30px;
}

.section-divider::after {
    right: -30px;
}

@keyframes grow {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}

/* boldLines动画已替换为静态加粗单元格图案 */

/* 关于我们 */
.about {
    padding: 120px 20px;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3::after {
    content: '';
    display: block;
    width: 50px;
    height: var(--border-width);
    background: var(--primary-color);
    margin: 10px 0;
}

.about-text h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
    margin-top: 30px;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: var(--border-width) solid var(--border-color);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.value-item i {
    font-size: 24px;
    color: var(--primary-color);
}

.value-item span {
    font-weight: 500;
    color: var(--dark-color);
}

.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 24px;
    font-weight: 600;
    animation: fadeInRight 1s ease-out;
}

.about-image .image-placeholder i {
    font-size: 64px;
    color: var(--primary-color);
}

/* 服务范围 */
.services {
    padding: 120px 20px;
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.service-item {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border: var(--border-width) solid var(--border-color);
    animation: fadeInUp 0.6s ease-out;
    border-top: 4px solid var(--primary-color);
    position: relative;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 60px;
    height: var(--border-width);
    background: var(--primary-color);
    transform: translateX(-50%);
}

.service-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-item .service-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-item .service-icon i {
    font-size: 64px;
    color: white;
    margin: 0;
}

.service-item h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 25px;
    line-height: 1.4;
}

.service-item p {
    color: var(--text-light);
    line-height: 2;
    margin: 0;
    font-size: 16px;
}

/* 产品中心 */
.products {
    padding: 120px 20px;
    background: white;
}

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

.product-item {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: var(--border-width) solid var(--border-color);
    position: relative;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: var(--border-width);
    background: var(--primary-color);
    transform: translateX(-50%);
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.product-icon i {
    font-size: 48px;
    color: white;
}

.product-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.product-item p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 联系我们 */
.contact {
    padding: 120px 20px;
    background: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info .contact-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-info .contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.contact-info .contact-item i {
    font-size: 24px;
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-info .contact-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.contact-info .contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 30px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.contact-form button {
    width: 100%;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    padding: 80px 20px 40px;
    color: white;
}

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

.footer-logo .logo-placeholder {
    margin-bottom: 20px;
}

.footer-logo p {
    color: #aaa;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

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

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

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #aaa;
}

.footer-contact-item i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.footer-bottom p {
    margin: 10px 0;
}

.record-number {
    font-size: 14px;
    opacity: 0.8;
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .about-content,
    .services-grid,
    .products-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .values {
        grid-template-columns: 1fr;
    }

    .about,
    .services,
    .products,
    .contact {
        padding: 80px 20px;
    }

    .about-text h3 {
        margin-top: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .about-image .image-placeholder {
        height: 300px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}