/* --- Global Styles --- */
body {
    /* Slightly softened yellow for better readability */
    background-color: #FFFACD; 
    /* Keeping your background image */
    background-image: url('../zhongfu_61.jpg'); 
    background-repeat: no-repeat;
    background-position: right top;
    background-attachment: fixed; /* Fixed on PC */
    
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    color: #333;
    margin: 0;
    padding: 20px;
    padding-right: 140px; /* Space for the background image on PC */
    line-height: 1.6;
}

/* Responsive fix for mobile */
@media (max-width: 768px) {
    body {
        /* FIX FOR MOBILE: */
        background-attachment: scroll; /* Image scrolls away ("Only in beginning") */
        background-position: top right; /* Keep it in the corner */
        background-size: 80px auto;     /* Make it smaller so it doesn't cover text */
        
        padding-right: 20px; /* Reset padding */
        margin-right: 0;
    }
}

h1, h2, h3, h4 {
    color: #d32f2f; /* A respectful, auspicious red for headings */
}

/* Links */
a {
    color: #d32f2f;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Form Styles (Matches your Landing Page style) */
.contact-section {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white backing */
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.submit-button {
    background-color: #d32f2f; /* Red button */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.submit-button:hover {
    background-color: #b71c1c;
}

#form-status {
    margin-top: 15px;
    font-weight: bold;
}

/* Footer */
.footer {
    margin-top: 50px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}



/* --- Language Toggle & Flag System --- */

/* Container: Keeps flags in one line, even on mobile */
.lang-toggle-container {
    display: flex;
    flex-wrap: nowrap; /* Forces single line */
    align-items: center;
    gap: 15px; /* Space between the two language groups */
    margin-bottom: 25px;
    padding: 8px;
    /* Optional: subtle background to separate it from the content */
    background-color: rgba(255, 250, 205, 0.4); 
    border-radius: 4px;
    width: fit-content;
}

/* Individual Option (Flag + Text) */
.lang-option {
    display: flex;
    align-items: center;
    gap: 6px; /* Space between flag and text */
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none; /* Removes link underline */
    font-size: 0.95em;
    font-weight: bold;
    transition: all 0.3s ease; /* Smooth hover effect */
}

.flag-icon {
    width: 32px; /* Fixed size for consistency */
    height: auto;
    vertical-align: middle;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2); /* 3D effect */
}

/* --- State: Active (Currently Viewing) --- */
.active-lang {
    /* Gold border to indicate selection */
    border: 2px solid #DAA520; 
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    opacity: 1;
    cursor: default; /* Shows it's not clickable */
}

/* --- State: Inactive (Link to other page) --- */
.inactive-lang {
    border: 2px solid transparent; /* Invisible border to keep sizing equal */
    color: #666;
    opacity: 0.7; /* Slightly faded */
    cursor: pointer;
}

.inactive-lang:hover {
    opacity: 1; /* Brightens on hover */
    background-color: rgba(255, 255, 255, 0.6);
    color: #d32f2f; /* Red text on hover */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}