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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

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

/* 导航栏样式 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2c5aa0;
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2c5aa0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2c5aa0;
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

.hero-image {
    text-align: center;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-illustration {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-circle {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    animation: pulse 4s ease-in-out infinite;
}

.tech-icon {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.ring-1 {
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-2 {
    width: 360px;
    height: 360px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 30s;
    animation-direction: reverse;
}

.orbit-dot {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: float 3s ease-in-out infinite;
}

.orbit-dot i {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.9;
}

.dot-1 { top: -20px; left: 50%; transform: translateX(-50%); }
.dot-2 { top: 50%; right: -20px; transform: translateY(-50%); animation-delay: -1s; }
.dot-3 { bottom: -20px; left: 50%; transform: translateX(-50%); animation-delay: -2s; }
.dot-4 { top: -20px; left: 50%; transform: translateX(-50%); animation-delay: -0.5s; }
.dot-5 { top: 50%; right: -20px; transform: translateY(-50%); animation-delay: -1.5s; }
.dot-6 { bottom: -20px; left: 50%; transform: translateX(-50%); animation-delay: -2.5s; }

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-element {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: floatAround 8s ease-in-out infinite;
}

.float-element i {
    font-size: 0.9rem;
    color: #fff;
    opacity: 0.7;
}

.element-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 20%;
    right: 15%;
    animation-delay: -2s;
}

.element-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: -4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 0 30px rgba(255, 255, 255, 0.2),
            inset 0 0 30px rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 40px rgba(255, 255, 255, 0.3),
            inset 0 0 40px rgba(255, 255, 255, 0.15);
    }
}

@keyframes glow {
    0% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(102, 126, 234, 0.3); }
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes floatAround {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-15px) translateX(10px);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-5px) translateX(-10px);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-20px) translateX(5px);
        opacity: 0.8;
    }
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: #2c5aa0;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: linear-gradient(45deg, rgba(44, 90, 160, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: rotate(15deg);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-description {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 60px;
    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.2);
    position: relative;
    border: 1px solid rgba(255,255,255,0.3);
}

.about-text::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid transparent;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    background-clip: padding-box;
    z-index: -1;
}

.intro-paragraph {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 30px;
    text-align: left;
    position: relative;
    padding-left: 25px;
    transition: all 0.3s ease;
}

.intro-paragraph::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.intro-paragraph:hover {
    transform: translateX(5px);
    color: #333;
}

.intro-paragraph:last-child {
    margin-bottom: 0;
}

.intro-paragraph:first-child {
    font-size: 1.25rem;
    /* color: #2c5aa0; */
    /* font-weight: 600; */
    margin-bottom: 35px;
}

.intro-paragraph:first-child::before {
    height: 25px;
    width: 5px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
}
.intro-paragraph:last-child::before {
    height: 20px;
    width: 5px;
    background: linear-gradient(135deg, #4fa9aa 0%, #0492df 100%);
}


/* 服务领域 */
.services {
    padding: 100px 0;
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #2c5aa0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 3.5rem;
    color: #2c5aa0;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* 产品展示 */
.products {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px;
    text-align: center;
}

.product-image i {
    font-size: 4rem;
    color: white;
}

.product-content {
    padding: 30px;
}

.product-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.product-content p {
    color: #666;
    line-height: 1.8;
}

/* 联系我们 */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-top: 5px;
    min-width: 30px;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

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

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
    margin-bottom: 10px;
}

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

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-section i {
    margin-right: 10px;
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
    line-height: 1.6;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.beian-link {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.beian-link:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.beian-link i {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 活跃导航链接样式 */
.nav-link.active {
    color: #2c5aa0;
}

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

/* 汉堡菜单动画 */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 返回顶部按钮悬停效果 */
.back-to-top:hover {
    transform: scale(1.1) !important;
    background: #1e3d72 !important;
}

/* 表单焦点效果增强 */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

/* 卡片悬停效果增强 */
.service-card:hover .service-icon i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image {
        height: 350px;
    }

    .tech-illustration {
        width: 300px;
        height: 300px;
    }

    .tech-circle {
        width: 150px;
        height: 150px;
    }

    .tech-icon {
        font-size: 3rem;
    }

    .ring-1 {
        width: 220px;
        height: 220px;
    }

    .ring-2 {
        width: 280px;
        height: 280px;
    }

    .orbit-dot {
        width: 30px;
        height: 30px;
    }

    .orbit-dot i {
        font-size: 1rem;
    }

    .float-element {
        width: 25px;
        height: 25px;
    }

    .float-element i {
        font-size: 0.8rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-text {
        padding: 40px 30px;
        margin: 0 10px;
    }

    .intro-paragraph {
        font-size: 1.05rem;
        padding-left: 20px;
        margin-bottom: 25px;
    }

    .intro-paragraph:first-child {
        font-size: 1.15rem;
    }

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-image {
        height: 250px;
    }

    .tech-illustration {
        width: 200px;
        height: 200px;
    }

    .tech-circle {
        width: 100px;
        height: 100px;
    }

    .tech-icon {
        font-size: 2rem;
    }

    .ring-1 {
        width: 160px;
        height: 160px;
    }

    .ring-2 {
        width: 200px;
        height: 200px;
    }

    .orbit-dot {
        width: 20px;
        height: 20px;
    }

    .orbit-dot i {
        font-size: 0.8rem;
    }

    .float-element {
        width: 20px;
        height: 20px;
    }

    .float-element i {
        font-size: 0.7rem;
    }

    .service-card,
    .product-card {
        margin: 0 10px;
    }

    .contact-form {
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.8;
    }

    .beian-link {
        display: inline-block;
        margin: 2px 0;
    }

    .about-text {
        padding: 25px 20px;
        margin: 0 5px;
        border-radius: 15px;
    }

    .intro-paragraph {
        font-size: 1rem;
        padding-left: 15px;
        margin-bottom: 20px;
    }

    .intro-paragraph:first-child {
        font-size: 1.1rem;
    }

    .about::before {
        display: none;
    }
}
