/* Basic Reset & Typography */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 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: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.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;
}

/* 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 Specifics (Example) */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}
.header-top-bar {
    background-color: #f8f9fa;
    padding: 8px 0;
    font-size: 0.9em;
    border-bottom: 1px solid #e9ecef;
}
.header-top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.top-nav-list li {
    margin-right: 15px;
}
.user-actions {
    display: flex;
    align-items: center;
}
.user-actions .btn {
    margin-left: 10px;
    padding: 5px 12px;
    font-size: 0.85em;
}
.language-selector select {
    margin-left: 10px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Footer Specifics (Example) */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    font-size: 0.9em;
}
.footer-widgets .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-widget h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}
.footer-widget h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: #007bff;
    margin-top: 8px;
}
.footer-widget p, .footer-widget address {
    margin-bottom: 15px;
}
.footer-widget a {
    color: #a0d9ff;
}
.footer-widget a:hover {
    color: #fff;
}
.social-links .social-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 8px;
    transition: background-color 0.3s ease;
}
.social-links .social-icon:hover {
    background-color: #007bff;
}
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-menu li {
    margin-bottom: 10px;
}
.newsletter-form {
    display: flex;
    margin-top: 15px;
}
.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 4px 0 0 4px;
    background-color: #3a506b;
    color: #fff;
}
.newsletter-form input[type="email"]::placeholder {
    color: #ccc;
}
.newsletter-form .btn-subscribe {
    background-color: #007bff;
    border: 1px solid #007bff;
    border-radius: 0 4px 4px 0;
    padding: 10px 15px;
    cursor: pointer;
}
.newsletter-form .btn-subscribe:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
.payment-methods {
    margin-top: 20px;
}
.payment-methods h4 {
    color: #fff;
    font-size: 1em;
    margin-bottom: 10px;
}
.payment-methods img {
    margin-right: 10px;
    opacity: 0.8;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-legal-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.footer-legal-nav li {
    margin-left: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-top-bar .container,
    .header-main .container {
        flex-direction: column;
        text-align: center;
    }
    .top-nav-list, .user-actions {
        margin-bottom: 10px;
    }
    .main-navigation {
        width: 100%;
    }
    .nav-menu {
        flex-direction: column;
        display: none; /* Hidden by default for mobile */
    }
    .nav-menu.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #333;
        font-size: 1.5em;
        cursor: pointer;
        margin: 10px auto;
    }
    .site-branding, .header-search {
        margin-bottom: 15px;
    }
    .footer-widgets .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-widget h3::after {
        margin-left: auto;
        margin-right: auto;
    }
    .social-links {
        justify-content: center;
        display: flex;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input[type="email"],
    .newsletter-form .btn-subscribe {
        border-radius: 4px;
        width: 100%;
        margin-bottom: 10px;
    }
    .footer-bottom .container {
        flex-direction: column;
    }
    .footer-legal-nav ul {
        flex-direction: column;
        margin-top: 15px;
    }
    .footer-legal-nav li {
        margin: 5px 0;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
