/* Basic Reset & Box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body & Typography */
body {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    font-weight: 700;
    color: #222;
}

p {
    margin-bottom: 1em;
}

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

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

ul, ol {
    list-style: none;
    margin-left: 0;
}

/* Container for Centering Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

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

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

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header Specific Styles (example) */
.site-header {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 40px; /* Adjust as needed */
    width: auto;
    vertical-align: middle;
}

.site-name {
    margin-left: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.main-nav .nav-menu {
    display: flex;
    gap: 20px;
}

.main-nav .nav-menu .menu-item a {
    padding: 8px 0;
    display: block;
    color: #555;
    font-weight: 500;
}

.main-nav .nav-menu .menu-item a:hover {
    color: #007bff;
    text-decoration: none;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px;
}

/* Footer Specific Styles (example) */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col ul {
    padding: 0;
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-col address p {
    margin-bottom: 5px;
    color: #bdc3c7;
}

.footer-col address a {
    color: #bdc3c7;
}

.social-links a {
    display: inline-block;
    background-color: #34495e;
    color: #fff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #007bff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    margin-bottom: 5px;
    color: #bdc3c7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
        order: 3; /* Push nav below logo/actions */
    }

    .menu-toggle {
        display: block;
        align-self: flex-end;
        position: absolute;
        top: 20px;
        right: 15px;
    }

    .main-nav .nav-menu {
        flex-direction: column;
        display: none; /* Hidden by default */
        width: 100%;
        background-color: #f8f8f8;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    .main-nav .nav-menu.active {
        display: flex;
    }

    .main-nav .nav-menu .menu-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .main-nav .nav-menu .menu-item:last-child {
        border-bottom: none;
    }

    .main-nav .nav-menu .menu-item a {
        padding: 12px 15px;
    }

    .user-actions {
        margin-top: 10px;
        order: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
