/* Basic Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1.6;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f8f8f8;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

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

a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

button, .btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}
.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}
.btn-secondary:hover {
    background-color: #5a6268;
}

/* Header Specifics (example) */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.main-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;
}
.site-tagline {
    margin-left: 15px;
    color: #666;
    font-size: 0.9em;
}
.main-navigation ul {
    display: flex;
    gap: 20px;
}
.main-navigation ul li a {
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    display: block;
    position: relative;
}
.main-navigation ul li a:hover {
    color: #007bff;
    text-decoration: none;
}
.main-navigation ul li.current-menu-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #007bff;
}
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 100;
    padding: 10px 0;
    border-radius: 5px;
}
.main-navigation .menu-item-has-children:hover > .sub-menu {
    display: block;
}
.main-navigation .sub-menu li {
    padding: 0;
}
.main-navigation .sub-menu li a {
    padding: 8px 20px;
    white-space: nowrap;
    font-weight: normal;
}
.menu-toggle {
    display: none; /* Hidden on desktop */
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}
.search-box input {
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    width: 180px;
    transition: width 0.3s ease;
}
.search-box input:focus {
    width: 220px;
    border-color: #007bff;
    outline: none;
}
.search-box button {
    background: none;
    border: none;
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #666;
}
.search-box button:hover {
    color: #007bff;
}

/* Footer Specifics (example) */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0;
    font-size: 0.9rem;
}
.main-footer a {
    color: #eee;
    text-decoration: none;
}
.main-footer a:hover {
    color: #007bff;
    text-decoration: underline;
}
.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}
.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}
.footer-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: #007bff;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col .social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.footer-col .social-links li a {
    font-size: 1.2rem;
    color: #ccc;
    transition: color 0.3s ease;
}
.footer-col .social-links li a:hover {
    color: #007bff;
}
.footer-col address p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.footer-col address p i {
    margin-right: 10px;
    color: #007bff;
}
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.copyright {
    margin: 0;
}
.footer-legal-links {
    display: flex;
    gap: 20px;
}
.back-to-top {
    background-color: #007bff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.back-to-top:hover {
    background-color: #0056b3;
}
.back-to-top i {
    font-size: 1rem;
}

/* Utility classes for icons - assuming some icon font is loaded, e.g., Font Awesome */
.icon-search::before { content: "\f002"; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.icon-facebook::before { content: "\f09a"; font-family: 'Font Awesome 5 Brands'; }
.icon-twitter::before { content: "\f099"; font-family: 'Font Awesome 5 Brands'; }
.icon-linkedin::before { content: "\f0e1"; font-family: 'Font Awesome 5 Brands'; }
.icon-wechat::before { content: "\f1d7"; font-family: 'Font Awesome 5 Brands'; }
.icon-location::before { content: "\f3c5"; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.icon-phone::before { content: "\f095"; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.icon-email::before { content: "\f0e0"; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.icon-time::before { content: "\f017"; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.icon-arrow-up::before { content: "\f062"; font-family: 'Font Awesome 5 Free'; font-weight: 900; }
.icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #333;
    margin: 4px 0;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-navigation {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    .main-navigation ul {
        flex-direction: column;
        display: none; /* Hidden by default for mobile */
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }
    .main-navigation ul.nav-menu.active {
        display: flex;
    }
    .main-navigation ul li {
        width: 100%;
        text-align: center;
    }
    .main-navigation ul li a {
        padding: 10px 0;
        border-bottom: 1px solid #f5f5f5;
    }
    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        background-color: #f9f9f9;
        padding: 0;
        border-radius: 0;
    }
    .main-navigation .sub-menu li a {
        padding-left: 30px;
    }
    .menu-toggle {
        display: block; /* Show on mobile */
        background: none;
        border: none;
        padding: 5px;
    }
    .header-actions {
        order: 2;
        margin-left: auto;
    }
    .search-box input {
        width: 120px;
    }
    .search-box input:focus {
        width: 150px;
    }
    .footer-widgets {
        flex-direction: column;
        align-items: center;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-col .social-links {
        justify-content: center;
    }
    .footer-col address p {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal-links {
        flex-direction: column;
        gap: 10px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
