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

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(52, 152, 219, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    color: #2c3e50;
    font-size: 24px;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

/* 主要内容样式 */
main {
    margin-top: 80px;
}

section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
}

/* 首页横幅样式 */
.hero {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    text-align: center;
    padding: 150px 0;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #c0392b;
}

/* 公司简介样式 */
.about {
    background-color: #f8f9fa;
    animation: fadeInUp 1s ease forwards;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
    text-align: justify;
}

.about-image {
    flex: 1;
    text-align: center;
}

.company-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.company-image:hover {
    transform: scale(1.05);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* 辉煌成就样式 */
.achievements {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    animation: fadeInUp 1s ease forwards;
}

.achievements h2 {
    color: white;
}

.achievements-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.achievements-image {
    flex: 1;
    text-align: center;
}

.achievement-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.achievement-image:hover {
    transform: scale(1.05);
}

.achievements-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.8;
}

.achievements-text p {
    margin-bottom: 20px;
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.achievements-text p:hover {
    transform: translateY(-5px);
}

/* 企业文化样式 */
.culture {
    background-color: #f8f9fa;
    animation: fadeInUp 1s ease forwards;
}

.culture-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.culture-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.8;
}

.culture-text p {
    margin-bottom: 20px;
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.culture-text p:hover {
    transform: translateY(-5px);
}

.culture-image {
    flex: 1;
    text-align: center;
}

.culture-img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* 企业承诺样式 */
.commitment {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    animation: fadeInUp 1s ease forwards;
}

.commitment h2 {
    color: white;
}

.commitment-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.commitment-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.8;
}

.commitment-text p {
    margin-bottom: 20px;
    text-align: left;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #3498db;
    border-radius: 0 5px 5px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.commitment-text p:hover {
    transform: translateX(10px);
}

.certification-image {
    flex: 1;
    text-align: center;
    margin-top: 30px;
    animation: fadeInUp 1s ease forwards;
}

.certification-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    object-fit: contain;
    animation: zoomIn 1s ease forwards;
}

/* 产品中心样式 */
.products {
    background-color: #f8f9fa;
}

.product-category {
    margin-bottom: 50px;
}

.product-category h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.product-category h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.product-category h3 a:hover {
    color: #3498db;
}

.product-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #3498db;
}

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

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

.product-card:hover {
    transform: translateY(-10px);
}

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

.product-card h3 {
    padding: 20px 20px 0;
    font-size: 22px;
}

.product-card p {
    padding: 0 20px 20px;
    color: #666;
}

.view-more {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.view-more .btn2 {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.view-more .btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 新闻中心样式 */
.news {
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

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

.news-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, #3498db, #2c3e50);
    transition: height 0.4s ease;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-item:hover::before {
    height: 100%;
}

.news-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.news-item:hover h3 {
    color: #3498db;
}

.date {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-style: italic;
    display: block;
    position: relative;
    padding-left: 20px;
}

.date::before {
    content: '📅';
    position: absolute;
    left: 0;
    top: 0;
}

.news-item p {
    color: #555;
    line-height: 1.7;
    position: relative;
    padding-top: 15px;
}

.news-item p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #3498db;
    border-radius: 1px;
}

/* 联系我们样式 */
.contact {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
}

.contact h2 {
    color: white;
}

.contact-content {
    display: flex;
    gap: 50px;
    margin-top: 30px;
}

.contact-info {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-item {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.info-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #3498db;
    display: flex;
    align-items: center;
}

.info-item h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #3498db;
    border-radius: 50%;
    margin-right: 10px;
}

.info-item p {
    font-size: 18px;
    line-height: 1.6;
}

.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

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

.contact .btn {
    width: 100%;
    background: #3498db;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 15px;
    transition: all 0.3s ease;
}

.contact .btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero {
        padding: 100px 0;
    }

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

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

    section h2 {
        font-size: 28px;
    }

    .about-content {
        flex-direction: column;
    }

    .culture-content {
        flex-direction: column;
        gap: 30px;
    }

    .culture-text {
        order: 1;
    }

    .culture-image {
        order: 2;
    }

    .contact-content {
        flex-direction: column;
    }
}
