/* 全局样式 */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #1a1a2e;
    --accent-color: #00ffbb;
    --text-color: #ffffff;
    --light-bg: #f5f5f5;
    --dark-bg: #1a1a2e;
    --card-bg: rgba(255, 255, 255, 0.1);
    --section-bg: rgba(26, 26, 46, 0.8);
    --hover-bg: rgba(74, 144, 226, 0.2);
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft YaHei', sans-serif;
    background: #1a1a2e;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 页面标题样式 */
.page-header {
    background: rgba(26, 26, 46, 0.8);
    padding: 100px 0 50px;
    text-align: center;
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: #ffffff;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

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

.logo img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    transition: color 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* 首屏Banner样式 */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 40vh;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease 0.4s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

/* 核心展示区块样式 */
.core-features {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.9);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #4a90e2;
    margin-bottom: 15px;
}

.feature-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.feature-content p {
    font-size: 1rem;
    color: #666;
}

/* 关于我们页面样式 */
.about-section {
    padding: 80px 0;
    background: rgba(26, 26, 46, 0.8);
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #4a90e2;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #ffffff;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 企业文化样式 */
.culture-section {
    background: rgba(26, 26, 46, 0.8);
    padding: 80px 0;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.culture-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.culture-item:hover {
    transform: translateY(-10px);
    background: rgba(74, 144, 226, 0.2);
}

.culture-item i {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 20px;
}

.culture-item h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.culture-item p {
    color: #ffffff;
}

/* 产品页面样式 */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #4a90e2;
    margin-bottom: 20px;
}

.section-header p {
    color: #ffffff;
    font-size: 1.1rem;
    opacity: 0.8;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.category-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    background: rgba(74, 144, 226, 0.2);
}

.category-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-item:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-item:hover .category-overlay {
    opacity: 1;
}

.btn-detail {
    background: #4a90e2;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-detail:hover {
    background: #3a80d2;
}

.category-content {
    padding: 20px;
}

.category-content h3 {
    color: #4a90e2;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.category-content p {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 15px;
}

.category-content ul {
    list-style: none;
    padding: 0;
}

.category-content ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #ffffff;
}

.category-content ul li i {
    color: #4a90e2;
    margin-right: 10px;
}

/* 产品优势部分样式 */
.advantages-section {
    background: rgba(26, 26, 46, 0.8);
    padding: 80px 0;
}

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

.advantage-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    background: rgba(74, 144, 226, 0.2);
}

.advantage-icon {
    background: #4a90e2;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.advantage-content h3 {
    color: #4a90e2;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.advantage-content p {
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
}

/* 生产实力页面样式 */
.equipment-section {
    padding: 80px 0;
    background: rgba(26, 26, 46, 0.8);
}

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

.equipment-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.equipment-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.equipment-item h3 {
    padding: 20px;
    margin: 0;
    color: #4a90e2;
}

.equipment-item p {
    padding: 0 20px 20px;
    margin: 0;
    color: #ffffff;
}

/* 工艺流程样式 */
.process-section {
    background: rgba(26, 26, 46, 0.8);
    padding: 80px 0;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    background: rgba(74, 144, 226, 0.2);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #4a90e2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: bold;
}

.process-step h3 {
    color: #4a90e2;
    margin-bottom: 10px;
}

.process-step p {
    color: #ffffff;
}

/* 联系我们页面样式 */
.contact-section {
    padding: 80px 0;
    background: rgba(26, 26, 46, 0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    animation: fadeInUp 0.6s ease backwards;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(74, 144, 226, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.2);
}

.info-icon i {
    color: #ffffff;
    font-size: 1.2rem;
}

.info-content h3 {
    color: #4a90e2;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-content p {
    color: #ffffff;
    line-height: 1.6;
    opacity: 0.8;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    animation: slideIn 0.6s ease backwards;
    animation-delay: 0.5s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form h3 {
    color: #4a90e2;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-desc {
    color: #ffffff;
    margin-bottom: 30px;
    opacity: 0.8;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(26, 26, 46, 0.8);
    color: #ffffff;
}

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

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

.submit-btn {
    background: #4a90e2;
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    position: relative;
    overflow: hidden;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.2);
}

.submit-btn:hover {
    background: #3a80d2;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.map-section {
    padding: 80px 0;
    background: rgba(26, 26, 46, 0.8);
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* 底部样式 */
footer {
    background: rgba(26, 26, 46, 0.95);
    padding: 40px 0;
    margin-top: 50px;
    color: white;
}

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

.footer-section h4 {
    color: #4a90e2;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #4a90e2;
}

.footer-section p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p i {
    color: #4a90e2;
    width: 20px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #4a90e2;
}

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

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* 页面切换动画 */
.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* 增强现有动画效果 */
.info-card {
    animation: fadeInUp 0.6s ease backwards;
}

.info-card:nth-child(1) {
    animation-delay: 0.1s;
}

.info-card:nth-child(2) {
    animation-delay: 0.2s;
}

.info-card:nth-child(3) {
    animation-delay: 0.3s;
}

.info-card:nth-child(4) {
    animation-delay: 0.4s;
}

.contact-form {
    animation: slideIn 0.6s ease backwards;
    animation-delay: 0.5s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* 增强交互效果 */
.info-icon {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    background: #3a80d2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 46, 0.95);
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: block;
    }

    .nav-links a {
        display: block;
        margin: 15px 0;
        text-align: center;
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.active i {
        transform: rotate(90deg);
    }

    .mobile-menu-btn i {
        transition: transform 0.3s ease;
    }

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

    .culture-grid,
    .process-timeline {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section p {
        justify-content: center;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .product-categories {
        grid-template-columns: 1fr;
    }

    .category-image {
        height: 200px;
    }

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

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

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 60px 0;
    }

    .map-container iframe {
        height: 400px;
    }
}

/* 粒子背景样式 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
}

/* 波纹效果样式 */
.ripple {
    position: absolute;
    background: rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* 元素悬停效果 */
.info-card,
.submit-btn {
    position: relative;
    overflow: hidden;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .feature-card {
        padding: 20px 15px;
    }

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

    .feature-content h3 {
        font-size: 1.5rem;
    }

    .feature-content p {
        font-size: 0.9rem;
    }
}

/* 平板适配 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.phone-link {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #3a80d2;
    text-decoration: underline;
}

/* 移动端电话号码样式 */
@media screen and (max-width: 768px) {
    .phone-link {
        display: inline-block;
        padding: 5px 10px;
        background: rgba(74, 144, 226, 0.1);
        border-radius: 5px;
    }

    .phone-link:active {
        background: rgba(74, 144, 226, 0.2);
    }
}