/* General Body Styles */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

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

.top-nav ul li {
    margin-left: 30px;
    position: relative;
}

.top-nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.top-nav ul li a:hover,
.top-nav ul li a.active {
    color: #007bff;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    padding: 10px 0;
}

.dropdown-content a {
    color: black;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #007bff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    margin-left: 20px;
}

.search-box input {
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 20px;
    outline: none;
    width: 180px;
    transition: width 0.3s ease;
}

.search-box input:focus {
    width: 220px;
    border-color: #007bff;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
}

.hero-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #e0f2f7 0%, #c1e4f0 100%);
    margin-top: 20px;
    border-radius: 8px;
}

.hero-section h1 {
    font-size: 3.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.hero-buttons .btn {
    margin: 0 10px;
}

.tagline {
    font-size: 0.9em;
    color: #777;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-cta {
    background-color: #28a745;
    color: white;
}

.btn-cta:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-outline:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Footer Styles */
.main-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 30px 0;
    font-size: 0.95em;
    margin-top: 50px;
}

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

.footer-col h3 {
    color: #ecf0f1;
    font-size: 1.3em;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

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

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

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

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

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

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

.social-media a:hover {
    color: #3498db;
}

.newsletter input[type="email"] {
    width: calc(100% - 100px); /* Adjust width to make room for button */
    padding: 10px 15px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #34495e;
    color: white;
    margin-right: 10px;
    outline: none;
}

.newsletter input[type="email"]::placeholder {
    color: #95a5a6;
}

.newsletter .btn-subscribe {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter .btn-subscribe:hover {
    background-color: #2980b9;
}

.newsletter-disclaimer {
    font-size: 0.8em;
    color: #95a5a6;
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #34495e;
    padding-top: 30px;
    margin-top: 30px;
    color: #bdc3c7;
    font-size: 0.85em;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-nav {
        margin-top: 20px;
        width: 100%;
    }

    .top-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .top-nav ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .top-nav ul li a {
        display: block;
        padding: 10px 15px;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #f1f1f1;
        width: 100%;
        padding: 0;
    }

    .dropdown-content a {
        padding-left: 30px;
    }

    .header-actions {
        margin-top: 20px;
        width: 100%;
        justify-content: center;
    }

    .search-box {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    .search-box input {
        width: calc(100% - 50px);
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        margin: 10px 0;
        width: 80%;
        max-width: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .newsletter input[type="email"] {
        width: calc(100% - 120px);
        margin-bottom: 10px;
    }
    .newsletter .btn-subscribe {
        width: 100px;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
