/* General Body Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f7f6;
}

/* Container for consistent width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Links */
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Buttons */
.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect total width */
    font-size: 16px;
}

input[type="submit"] {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 17px;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #218838;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.margin-top-20 {
    margin-top: 20px;
}

/* Header Specific Styles for responsiveness */
.main-header .main-nav ul {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.main-header .main-nav li {
    margin-left: 20px;
    margin-bottom: 10px; /* For wrapping items */
}

/* Dropdown specific styles */
.nav-item-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
    color: #007bff;
}

/* Footer Specific Styles */
.main-footer .social-media a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #555;
    margin-right: 10px;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-footer .social-media a:hover {
    background-color: #007bff;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-header .logo, .main-header .header-actions {
        margin-bottom: 15px;
        margin-right: 0;
        width: 100%;
        text-align: center;
    }
    .main-header .main-nav {
        width: 100%;
        text-align: center;
    }
    .main-header .main-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .main-header .main-nav li {
        margin: 10px 0;
    }
    .main-header .header-actions {
        flex-direction: column;
        align-items: center;
    }
    .main-header .header-actions input[type="search"],
    .main-header .header-actions button {
        width: 80%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .main-footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .main-footer .footer-section {
        margin-bottom: 30px;
        width: 100%;
        max-width: 400px; /* Limit width on small screens */
    }
    .main-footer .footer-section ul {
        text-align: center;
    }
    .main-footer .newsletter form {
        justify-content: center;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
