/* css/style.css */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Bilingual Support Core CSS --- */
body.lang-zh .en {
    display: none !important;
}
body.lang-zh .zh {
    display: block !important;
}

body.lang-en .zh {
    display: none !important;
}
body.lang-en .en {
    display: block !important;
}

body.lang-zh a.zh, body.lang-zh span.zh, body.lang-zh button.zh {
    display: inline-block !important;
}
body.lang-en a.en, body.lang-en span.en, body.lang-en button.en {
    display: inline-block !important;
}
/* ------------------------ */

/* Iconfont Integration */
.iconfont {
    font-size: 2.5rem;
    color: #e31837;
    flex-shrink: 0;
}

.feature-icon .iconfont {
    font-size: 2.5rem;
    color: #e31837;
}

.contact-icon .iconfont {
    font-size: 2.5rem;
    color: #e31837;
}

/* Navigation */
nav {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.logo span {
    color: #e31837;
    margin-left: 0.3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-links a:hover {
    color: #e31837;
}

.lang-switch {
    cursor: pointer;
    font-weight: 600;
    user-select: none;
    color: #333;
    padding: 0.5rem 1rem;
    border: 2px solid #e31837;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    background-color: #e31837;
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/back/855aa352cb5df78653abb5ae0613e078.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(227, 24, 55, 0.1) 0%, rgba(26, 26, 26, 0.3) 100%);
    z-index: 0;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    text-align: center;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    max-width: 900px;
    margin: 0 auto 2rem;
    line-height: 2;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    text-align: justify;
    letter-spacing: 0.3px;
}

.hero p br {
    display: block;
    content: "";
    margin-bottom: 0.8rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #e31837;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 24, 55, 0.3);
    border: 2px solid #e31837;
}

.btn:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(227, 24, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
    margin-left: 1rem;
}

.btn-outline:hover {
    background: #fff;
    color: #e31837;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 5%;
}

.section {
    padding: 5rem 0;
}

/* Headings */
h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 3rem 0 1.5rem;
    text-align: center;
}

p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Core Values Section - Four cards in one row */
.container .card-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
}

.card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #e31837, #ff6b6b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

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

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
}

/* Features Section */
.features {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 5rem 0;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/back/2d94786a33e7b790c1c74f3b26744f65.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
}

.features .container {
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #e31837;
}

.feature-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateX(10px);
    border-left-width: 6px;
}

.feature-icon {
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

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

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(227, 24, 55, 0.7), rgba(255, 107, 107, 0.7)), url('../img/back/470b5d0ae8dcc10c89dce9806fd7198b.jpg');
    background-size: cover;
    background-position: center;
    padding: 5rem 5%;
    text-align: center;
    color: #fff;
    position: relative;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cta-section p {
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.cta-section .btn {
    background: #fff;
    color: #e31837;
    border-color: #fff;
}

.cta-section .btn:hover {
    background: transparent;
    color: #fff;
}

/* Contact Page Specific Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #e31837;
}

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

.contact-icon {
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.contact-item p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.contact-item strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 3rem 5%;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e31837, #ff6b6b, #e31837);
}

footer p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero {
        min-height: 70vh;
        background-attachment: scroll;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Override for core values on mobile */
    .container .card-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        display: block;
        margin: 1rem auto;
        text-align: center;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}
