/* General Body and Typography */
body {
    font-family: 'Roboto', 'Noto Sans SC', sans-serif;
    line-height: 1.7;
    color: #444;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', 'Noto Sans SC', sans-serif;
    color: #222;
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

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

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

p {
    margin-bottom: 1em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

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

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

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

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
}

/* Header Specific Styles */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #0056b3;
    text-decoration: none;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007bff;
}

.mobile-menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    cursor: pointer;
    font-size: 28px;
    color: #333;
    background: none;
    border: none;
    padding: 0;
}

/* Footer Specific Styles */
footer {
    background-color: #222;
    color: #bbb;
    padding: 60px 0 30px;
    font-size: 0.95em;
    margin-top: 50px;
}

footer h3 {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 20px;
    position: relative;
}

footer h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #007bff;
    margin-top: 10px;
}

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

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

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

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-col p {
    margin-bottom: 10px;
}

.footer-col p i {
    margin-right: 8px;
    color: #007bff;
}

.social-links a {
    color: #bbb;
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 25px;
    text-align: center;
    font-size: 0.85em;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom a {
    color: #007bff;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect x="0" y="0" width="100%" height="100%" fill="url(#dots)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 1.6em;
    margin-bottom: 40px;
    color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 3em;
    }
    .hero-section p {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    nav {
        flex-basis: 100%;
    }
    nav ul {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #fff;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        left: 0;
        border-top: 1px solid #eee;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 999;
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        margin: 15px 0;
    }
    nav ul li a {
        color: #333;
        font-size: 1.1em;
    }
    .mobile-menu-toggle {
        display: block; /* Show hamburger icon */
        position: absolute;
        right: 20px;
        top: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3::after {
        margin-left: auto;
        margin-right: auto;
    }
    .social-links {
        margin-top: 20px;
    }
    .hero-section {
        padding: 80px 0;
    }
    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .btn {
        padding: 10px 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;
  }
}
