/* Basic Reset & Typography */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f7f6;
}

*, *::before, *::after {
    box-sizing: inherit;
}

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

a:hover {
    color: #0056b3;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

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

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #007bff;
    border: 1px solid #007bff;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    color: #fff;
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    color: #007bff;
    background-color: transparent;
    border-color: #007bff;
}

.btn-secondary:hover {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

/* Forms */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive adjustments for shared components */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        align-items: center;
    }
    .main-header .logo-area, .main-header .user-actions {
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }
    .main-header .main-navigation {
        width: 100%;
    }
    .main-header .nav-list {
        flex-direction: column;
        align-items: center;
    }
    .main-header .nav-item {
        margin: 0 0 10px 0;
    }
    .main-header .user-actions {
        flex-direction: column;
    }
    .main-header .search-form {
        margin-right: 0;
        margin-bottom: 10px;
        width: 80%;
    }
    .main-header .search-input {
        width: 100%;
    }
    .main-header .btn {
        width: 80%;
        margin-left: 0 !important;
        margin-bottom: 10px;
    }
    .footer-section {
        flex: 1 1 100% !important;
        text-align: center;
        padding-right: 0;
        margin-bottom: 30px;
    }
    .footer-section ul {
        text-align: center;
        padding-left: 0;
    }
    .footer-section ul li {
        display: block;
        margin: 0 auto 8px auto;
    }
    .footer-bottom p {
        padding: 0 10px;
    }
    .footer-bottom a {
        display: block;
        margin: 5px auto !important;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
