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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --text-color: #2c3e50;
    --light-text: #7f8c8d;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease;
}

/* 页面加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

/* 应用动画到元素 */
.about-section {
    animation: fadeIn 1s ease-out;
    background-color: var(--card-background);
    border-radius: 20px;
    padding: 40px 20px;
    box-shadow: var(--shadow);
}

.about-grid-1 .about-image {
    animation: slideInLeft 1s ease-out 0.2s both;
}

.about-grid-1 .about-text {
    animation: slideInRight 1s ease-out 0.4s both;
}

.about-grid-2 .about-image {
    animation: slideInRight 1s ease-out 0.6s both;
}

.about-grid-2 .about-text {
    animation: slideInLeft 1s ease-out 0.8s both;
}

.about-highlights {
    animation: fadeIn 1s ease-out 1s both;
}

.highlight-item {
    animation: fadeIn 0.8s ease-out;
}

.highlight-item:nth-child(1) { animation-delay: 1.2s; }
.highlight-item:nth-child(2) { animation-delay: 1.4s; }
.highlight-item:nth-child(3) { animation-delay: 1.6s; }
.highlight-item:nth-child(4) { animation-delay: 1.8s; }

.about-global {
    animation: fadeIn 1s ease-out 2s both;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--background-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部导航 */
.header {
    background-color: var(--card-background);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

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

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

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

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

.nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav ul li a:hover {
    color: var(--secondary-color);
}

.nav ul li a:hover::after {
    width: 100%;
}

/* Banner轮播 */
.banner-container {
    position: relative;
    overflow: hidden;
    background-color: var(--background-color);
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 600px;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.banner-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0;
}

.banner-image {
    max-width: 100%;
    width: 100%;
    height: 100%;
    z-index: 2;
    position: relative;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.banner-button {
    display: inline-block;
    background-color: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    letter-spacing: 0.5px;
}

.banner-button:hover {
    background-color: rgba(41, 128, 185, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Banner轮播控制按钮 */
.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 3;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background-color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Banner轮播指示器 */
.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.indicator.active {
    background-color: white;
    width: 45px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 主要内容 */
.main-content {
    padding: 80px 0;
    max-width: 1300px;
    margin: 0 auto;
    width: 95%;
}

/* 公司简介标题样式 */
.company-profile-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.company-profile-header h2 {
    font-size: 48px;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -1px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
}

.company-profile-header p {
    font-size: 16px;
    color: var(--light-text);
    margin: 10px 0 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.header-lines {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.yellow-line {
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.black-line {
    width: 80px;
    height: 1px;
    background-color: var(--border-color);
}

/* 确保公司简介标题样式优先 */
.company-profile-header h2 {
    font-size: 48px !important;
    margin-bottom: 10px !important;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 网格布局 */
.about-grid {
    display: flex;
    gap: 60px;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.about-grid-2 {
    flex-direction: row-reverse;
}

.about-image, .workshop-image {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    box-shadow: var(--shadow);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    background-color: var(--card-background);
}

.about-image:hover, .workshop-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-image img, .workshop-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-text {
    flex: 1;
    min-width: 320px;
    line-height: 1.7;
    color: var(--light-text);
}

.about-text h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.5px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--light-text);
    line-height: 1.8;
    position: relative;
    padding-left: 20px;
}

.about-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* 滚动相册 */
.photo-gallery {
    margin: 10px 20px;
    text-align: center;
    padding: 15px 20px;
    background-color: var(--card-background);
    border-radius: 16px;
    box-shadow: var(--shadow);
    animation: fadeIn 1s ease-out 2.2s both;
}

.photo-gallery h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.gallery-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.gallery-wrapper {
    display: flex;
    gap: 10px;
    padding: 15px 0;
    will-change: transform;
    transition: transform 0.3s ease;
}

/* 第二个轮播条样式 */
.gallery-container-secondary {
    margin-top: 20px;
}

.gallery-wrapper-secondary {
    display: flex;
    gap: 4px;
    padding: 10px 0;
    will-change: transform;
    transition: transform 0.3s ease;
}

/* 反向滚动轮播条样式 */
.gallery-container-reversed {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.gallery-wrapper-reversed {
    display: flex;
    gap: 4px;
    padding: 10px 0;
    will-change: transform;
    transition: transform 0.3s ease;
    width: fit-content;
}

.gallery-item {
    flex: 0 0 auto;
    width: 2800px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* 轮播公司图1和2的特定样式（宽高比10.33:1） */
.gallery-item.company-photo-10-3 {
    width: 1860px;
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

/* 为轮播公司图提供特殊样式，确保完整显示 */
.gallery-item.company-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background-color: #f0f0f0;
}

/* 公司优势 */
.about-highlights {
    padding: 30px 20px;
    background-color: var(--card-background);
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    margin: 10px 20px;
}

.about-highlights h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.about-highlights h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

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

.highlight-item {
    background-color: var(--card-background);
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

/* 公司优势图标 */
.highlight-item:nth-child(1) h4::before {
    content: '🏢';
    font-size: 28px;
    margin-right: 12px;
    vertical-align: middle;
    color: var(--secondary-color);
}

.highlight-item:nth-child(2) h4::before {
    content: '💰';
    font-size: 28px;
    margin-right: 12px;
    vertical-align: middle;
    color: var(--success-color);
}

.highlight-item:nth-child(3) h4::before {
    content: '🌍';
    font-size: 28px;
    margin-right: 12px;
    vertical-align: middle;
    color: var(--accent-color);
}

.highlight-item:nth-child(4) h4::before {
    content: '🏷️';
    font-size: 28px;
    margin-right: 12px;
    vertical-align: middle;
    color: var(--primary-color);
}

.highlight-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.highlight-item:hover::before {
    transform: scaleX(1);
}

.highlight-item h4 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.highlight-item p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 15px;
}

/* 全球布局 */
.about-global {
    padding: 40px 30px;
    text-align: center;
    background-color: var(--card-background);
    border-radius: 16px;
    margin: 0 20px 80px;
    box-shadow: var(--shadow);
}

.about-global h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 35px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.about-global h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.about-global p {
    max-width: 850px;
    margin: 0 auto 25px;
    color: var(--light-text);
    line-height: 1.8;
    font-size: 16px;
    text-align: justify;
    text-justify: inter-word;
}



/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--success-color));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-info, .footer-links {
    max-width: 45%;
    margin-bottom: 40px;
}

.footer-info h3, .footer-links h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-info h3::after, .footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-info p {
    margin-bottom: 15px;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 15px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.footer-links ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    padding-left: 20px;
}

.footer-links ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 25px;
}

.footer-links ul li a:hover::before {
    left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
    max-width: 1300px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

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

    .logo {
        justify-content: center;
    }

    .logo h1 {
        font-size: 20px;
    }

    .logo-image {
        height: 40px;
    }

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

    .nav ul li {
        margin: 0 15px;
    }

    .banner-slider {
        height: 500px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }

    .banner-overlay {
        bottom: 20px;
    }

    .banner-button {
        padding: 10px 25px;
        font-size: 13px;
    }



    .about-grid {
        flex-direction: column;
        gap: 30px;
    }

    .about-grid-2 {
        flex-direction: column;
    }

    .about-image, .workshop-image {
        max-width: 100%;
        min-width: auto;
    }

    /* 滚动相册响应式设计 */
    .gallery-item {
        width: 2331px;
        height: 150px;
    }
    
    /* 轮播公司图1和2的响应式样式 */
    .gallery-item.company-photo-10-3 {
        width: 1550px;
    }

    .about-text {
        min-width: auto;
    }

    /* 删除原来的about-section h2样式，因为我们现在使用.company-profile-header */
    
    /* 公司简介标题响应式设计 */
    .company-profile-header h2 {
        font-size: 32px !important;
    }
    
    .company-profile-header p {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .yellow-line {
        width: 30px;
        height: 2px;
    }
    
    .black-line {
        width: 60px;
        height: 2px;
    }
    
    .header-lines {
        gap: 8px;
    }
    
    .gallery-wrapper {
        gap: 3px;
    }

    .about-text h3 {
        font-size: 20px;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .highlight-item {
        padding: 20px;
    }

    /* 新添加的响应式样式 */
    .main-content {
        padding: 40px 0;
        width: 98%;
    }

    .about-section {
        padding: 20px 15px;
    }

    .photo-gallery,
    .about-highlights,
    .about-global {
        margin: 10px 10px;
    }

    .about-content {
        gap: 20px;
    }

    .about-grid {
        gap: 40px;
        padding: 0 10px;
    }

    .about-highlights {
        padding: 40px 15px;
    }

    .about-global {
        padding: 30px 20px;
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .banner-slider {
        height: 400px;
    }

    /* 小屏幕滚动相册响应式设计 */
    .gallery-item {
        width: 1865px;
        height: 120px;
    }
    
    /* 轮播公司图1和2的小屏幕响应式样式 */
    .gallery-item.company-photo-10-3 {
        width: 1240px;
    }

    /* 小屏幕公司简介标题响应式设计 */
    .company-profile-header h2 {
        font-size: 24px !important;
    }

    .company-profile-header p {
        font-size: 12px;
    }

    .yellow-line {
        width: 25px;
    }

    .black-line {
        width: 50px;
    }

    .gallery-wrapper {
        gap: 2px;
    }

    /* 小屏幕公司优势响应式设计 */
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .highlight-item {
        padding: 15px;
    }

    /* 新添加的小屏幕响应式样式 */
    .main-content {
        padding: 30px 0;
        width: 99%;
    }

    .about-section {
        padding: 15px 10px;
    }

    .photo-gallery,
    .about-highlights,
    .about-global {
        margin: 10px 5px;
    }

    .about-content {
        gap: 20px;
    }

    .about-grid {
        gap: 30px;
        padding: 0 5px;
    }

    .about-highlights {
        padding: 30px 10px;
    }

    .about-global {
        padding: 25px 15px;
        margin-bottom: 50px;
    }

    .about-highlights h3,
    .about-global h3 {
        font-size: 24px;
    }

    .highlight-item h4 {
        font-size: 18px;
    }

    .banner-controls {
        padding: 0 10px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .footer-info, .footer-links {
        max-width: 100%;
        width: 100%;
    }

    .footer-links ul {
        justify-content: center;
    }
}