/* shared_css: 这是一个企业级网站的通用样式表，包含基础排版、颜色变量、响应式设计等关键元素，确保网站整体风格统一。 */
/* -------------------------------------------------------------------------- */
/*                              Global Variables                              */
/* -------------------------------------------------------------------------- */
:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --accent-color: #28a745;
    --text-color: #333;
    --light-text-color: #666;
    --background-color: #f8f9fa;
    --light-background-color: #ffffff;
    --border-color: #dee2e6;
    --font-family-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-family-serif: 'Georgia', serif;
    --heading-font-weight: 700;
    --body-font-weight: 400;
    --transition-speed: 0.3s ease-in-out;
}

/* -------------------------------------------------------------------------- */
/*                                   Base Styles                                  */
/* -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}
*,
*::before,
*::after {
    box-sizing: inherit;
}
body {
    margin: 0;
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-sans);
    font-weight: var(--heading-font-weight);
    color: var(--text-color);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
h1 {
    font-size: 2.5em;
}
h2 {
    font-size: 2em;
}
h3 {
    font-size: 1.75em;
}
p {
    margin-bottom: 1em;
}
ul, ol {
    margin-top: 0;
    margin-bottom: 1em;
    padding-left: 20px;
}
li {
    margin-bottom: 0.5em;
}

/* -------------------------------------------------------------------------- */
/*                                 Utility Classes                                */
/* -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color var(--transition-speed);
}
.button:hover {
    background-color: var(--secondary-color);
    text-decoration: none;
}
.button.secondary {
    background-color: var(--accent-color);
}
.button.secondary:hover {
    background-color: darken(var(--accent-color), 10%);
}

/* -------------------------------------------------------------------------- */
/*                                   Forms                                    */
/* -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family-sans);
    font-size: 1em;
}
input[type="submit"] {
    @extend .button;
}

/* -------------------------------------------------------------------------- */
/*                                  Footer Styles                                 */
/* -------------------------------------------------------------------------- */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 20px;
    margin-top: 50px;
    font-size: 0.9em;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}
.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2em;
}
.footer-section p,
.footer-section ul {
    margin-bottom: 10px;
    color: #bdc3c7;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section ul li a {
    color: #bdc3c7;
    transition: color var(--transition-speed);
}
.footer-section ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.social-links a {
    display: inline-block;
    margin-right: 15px;
}
.social-links img {
    width: 24px;
    height: 24px;
    filter: invert(100%); /* Make social icons white */
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #bdc3c7;
}
.footer-bottom p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-section {
        margin: 20px 0;
        text-align: center;
    }
    .footer-section ul {
        text-align: center;
    }
}

/* -------------------------------------------------------------------------- */
/*                              Accessibility Styles                              */
/* -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s ease;
}
.skip-link:focus {
    top: 0;
}

/* -------------------------------------------------------------------------- */
/*                                 Responsive Design                              */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
}
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.6em;
    }
    .container {
        padding: 0 15px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.4em;
    }
    .button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
