/* shared_css: Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #0056b3; /* Darker Blue */
    --secondary-color: #007bff; /* Standard Blue */
    --accent-color: #28a745; /* Green for success/action */
    --text-color-dark: #333;
    --text-color-light: #666;
    --bg-color-light: #f8f9fa;
    --bg-color-dark: #343a40;
    --border-color: #e0e0e0;
    --font-family-base: 'Roboto', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --border-radius: 5px;
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color-dark);
    background-color: #fff; /* Main content background */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-base);
    color: var(--text-color-dark);
    margin-bottom: 0.8em;
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.25em; }
h6 { font-size: 1em; }

/* Paragraphs */
p {
    margin-bottom: 1em;
    color: var(--text-color-light);
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 0.75em 1.5em;
    font-size: 1em;
    line-height: 1.5;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-success {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color-dark);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--text-color-dark);
    background-color: #fff;
    border-color: var(--secondary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Utility classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.py-2 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.bg-light { background-color: var(--bg-color-light); }
.shadow { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; }

/* Footer specific styles (could be here or in header_html style block) */
.site-footer {
    background-color: var(--bg-color-dark);
    color: #f8f9fa;
    padding: 50px 0 20px;
    font-size: 0.9em;
}

.site-footer a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.site-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-heading {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-links li {
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.newsletter-form button:hover {
    background-color: var(--primary-color);
}

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

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
    transition: background-color var(--transition-speed) ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

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

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

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.legal-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-links li {
    margin-left: 20px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
}

.legal-links a:hover {
    color: var(--secondary-color);
}

.beian-info {
    margin-top: 10px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
}

.beian-info a {
    color: rgba(255, 255, 255, 0.6);
}

.beian-info a:hover {
    color: var(--secondary-color);
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
    .footer-widgets {
        flex-direction: column;
    }
    .footer-col {
        min-width: unset;
        width: 100%;
        padding: 0;
    }
    .footer-bottom .container {
        flex-direction: column;
    }
    .legal-links {
        margin-top: 15px;
        flex-direction: column;
        align-items: center;
    }
    .legal-links 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;
  }
}
