/* Company Page Styles */

/* Simple Header */
.simple-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
    height: 70px;
}

.back-link {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    justify-self: start;
}

.back-link:hover {
    color: #fff;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    justify-self: center;
}

.simple-header .lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    justify-self: end;
    white-space: nowrap;
}

.simple-header .lang-switch a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.simple-header .lang-switch a.active,
.simple-header .lang-switch a:hover {
    color: #fff;
}

.simple-header .lang-switch span {
    color: #444;
}

/* Company Header */
.company-header {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    overflow: hidden;
}

.company-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
                url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1920') center/cover;
}

.company-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.company-logo {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

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

.company-logo i {
    font-size: 48px;
    color: #c41230;
}

.company-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.company-subtitle {
    color: #999;
    font-size: 1rem;
    letter-spacing: 2px;
}

/* Sub Navigation */
.sub-nav {
    background: #0f0f0f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.sub-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.sub-nav a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 20px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.sub-nav a:hover,
.sub-nav a.active {
    color: #fff;
    border-bottom-color: #e60012;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.section-subtitle {
    color: #e60012;
    font-size: 0.85rem;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.section-title-center {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
}

.section-subtitle-center {
    color: #e60012;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 40px;
}

/* Company About */
.company-about {
    padding: 80px 0;
    background: #0a0a0a;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
}

.about-content {
    color: #999;
    line-height: 2;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content .motto {
    color: #fff;
    font-weight: 500;
    margin-top: 30px;
    padding-left: 20px;
    border-left: 3px solid #e60012;
}

.ceo-sign {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.ceo-photo {
    width: 280px;
    height: 350px;
    background: #1a1a1a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.85rem;
    overflow: hidden;
}

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

.ceo-name-text {
    width: 280px;
    height: 350px;
    background: #1a1a1a;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
}

.ceo-title {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 15px;
}

.ceo-name-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
}

.about-image {
    position: sticky;
    top: 150px;
}

.factory-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
                url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=800') center/cover;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Factory Gallery */
.factory-gallery {
    padding: 80px 0;
    background: #0f0f0f;
}

.gallery-slider {
    display: flex;
    gap: 0;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.gallery-slide {
    flex: 0 0 100%;
    transition: transform 0.5s ease;
    display: none;
}

.gallery-slide.active {
    display: block;
}

.gallery-item {
    width: 100%;
    height: 500px;
    background: #1a1a1a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active,
.dot:hover {
    background: #e60012;
}

/* Products */
.products {
    padding: 80px 0;
    background: #0a0a0a;
}

.products-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

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

.product-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.product-card:hover {
    border-color: #e60012;
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 200px;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    overflow: hidden;
}

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

.product-card h4 {
    padding: 20px;
    text-align: center;
    color: #fff;
    font-size: 1rem;
}

/* Clients */
.clients {
    padding: 80px 0;
    background: #0f0f0f;
}

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

.clients-box {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.clients-box h3 {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #fff;
}

.client-list {
    min-height: 200px;
    background: #252525;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* 文本列表样式 */
.client-text-list {
    min-height: 200px;
    background: #252525;
    border-radius: 4px;
    padding: 20px;
    text-align: left;
}

.client-text-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.client-text-list li {
    color: #ccc;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.client-text-list li:last-child {
    border-bottom: none;
}

.client-text-list li:hover {
    color: #fff;
}

/* 文本框样式 */
.client-textarea {
    width: 100%;
    min-height: 200px;
    background: #252525;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 15px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
}

.client-textarea::placeholder {
    color: #666;
}

.client-textarea:focus {
    outline: none;
    border-color: #e60012;
    background: #2a2a2a;
}

/* Certificates */
.certificates {
    padding: 80px 0;
    background: #0a0a0a;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-items: center;
}

.certificate-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.certificate-card:hover {
    border-color: #e60012;
}

.certificate-image {
    width: 100%;
    height: 200px;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    overflow: hidden;
}

/* 资格认证图片固定大小显示 */
.certificate-image img,
.certificate-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

/* News */
.news {
    padding: 80px 0;
    background: #0f0f0f;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 40px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.news-date {
    color: #666;
    min-width: 120px;
    font-size: 0.9rem;
}

.news-title {
    color: #999;
    font-size: 0.95rem;
    min-width: 150px;
}

.news-desc {
    color: #666;
    font-size: 0.9rem;
    flex: 1;
}

/* Contact */
.contact {
    padding: 80px 0;
    background: #0a0a0a;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item strong {
    color: #fff;
    min-width: 60px;
    font-size: 0.9rem;
}

.contact-item span {
    color: #999;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        position: relative;
        top: 0;
        order: -1;
    }
    
    .products-grid,
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    cursor: default;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.modal-close:hover {
    color: #c41230;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Certificate image zoom cursor */
.certificate-image img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.certificate-image img:hover {
    transform: scale(1.02);
}

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

/* Product card image */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CEO photo image */
.ceo-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Factory image */
.factory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .company-header h1 {
        font-size: 1.8rem;
    }

    .sub-nav-container {
        gap: 20px;
        overflow-x: auto;
        padding: 0 20px;
    }

    .sub-nav a {
        font-size: 0.8rem;
        white-space: nowrap;
    }

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

    .news-item {
        flex-direction: column;
        gap: 10px;
    }
}
