/* CSS Variables - Consistent with file2 */
:root {
    --primary-dark: #1150d8ea;
    --primary-medium: #0079c1;
    --accent: #009f4d;
    --accentnew: #1dc951;
    --light-bg: #f8f9fa;
    --content-bg: #fdfbfb;
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #ffffff;
    --border: #e0e0e0;
    --visited: #34af1c;
    --footercb: #1a3a5f;
    --success-green: #28a745;
    --shadow-light: 0 5px 15px rgba(0,0,0,0.1);
}

/* Import base styles from main CSS */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
   ;
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: var(--text-light);
    padding: 25px 0;
    text-align: center;
    background-image: url(rc_images/contact.webp);
    background-position: center center;
    background-size: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}

header .container {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.7);
}

header p {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
}

/* Navigation Styles */
nav {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
}

.nav-item {
    font-size: clamp(0.75rem, 2vw, 1rem); /* 自适应字体大小 */
    padding: 12px clamp(8px, 2vw, 55px); /* 自适应内边距 */
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover, 
.nav-item.active {
    color: var(--accentnew);
    background-color: rgba(255,255,255,0.08);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Contact Header */
.contact-header {
    text-align: center;
    margin: 60px 0 40px;
}

.contact-intro {
    max-width: 1500px;
    margin: 0 auto auto;
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Contact Information Section Information Section */
.contact-info-section {
    margin: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--content-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--accent);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.contact-card h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Contact Form Section */
.contact-form-section {
    margin: 60px 0;
}

.form-container {
    background: var(--content-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    max-width: 600px;
    margin: 0 auto;
}

.form-container h3 {
    color: var(--primary-dark);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 159, 77, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-medium), var(--accent)));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.success-message {
    background: var(--success-green);
    color: white;
    padding: 18px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.5s eases ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Section */
.services-section {
    margin: 80px 0 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--content-bg);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.4rem;
rem;
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Footer Styles */
footer {
    background: var(--footercb);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    color: white;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.footer-column p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-column ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--light-bg);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s eases ease;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: bold;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .form-container {
        padding: 25px 20px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
   .nav-container {
         flex-direction: row !important; /* 覆盖原有的column设置 */
    }
    
    .nav-item {
        width: auto !important; /* 覆盖原有的100%宽度 */
        text-align: center;
    }
    
    .contact-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}