/* 企业官网基础样式 */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0056b3;
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.main-nav a:hover {
    color: #0056b3;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 100;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
}

.main-nav li:hover .submenu {
    display: flex;
}

.submenu li {
    padding: 5px 15px;
}

/* Main */
main {
    min-height: 60vh;
    background: #fff;
    padding: 30px 0;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Lists */
.service-list,
.news-list,
.case-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-item,
.news-item,
.case-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.service-item h2,
.news-item h2,
.case-item h2 {
    font-size: 1.25rem;
    margin-top: 0;
}

.service-item a,
.news-item a,
.case-item a {
    color: #0056b3;
    text-decoration: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.news-cover,
.case-cover,
.service-cover {
    width: 100%;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Article */
.news-article header,
.case-detail header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 15px;
}

.news-article time {
    color: #666;
    font-size: 0.9rem;
}

/* Contact */
.contact-info {
    background: #f1f3f5;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.map-embed {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

/* Footer */
.site-footer {
    background: #212529;
    color: #adb5bd;
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.footer-bottom .footer-left {
    flex: 1;
    text-align: left;
}

.footer-bottom .footer-center {
    flex: 1;
    text-align: center;
    font-weight: bold;
    color: #fff;
}

.footer-bottom .footer-right {
    flex: 1;
    text-align: right;
}

.footer-bottom .footer-right a {
    color: #adb5bd;
    margin-left: 15px;
    text-decoration: none;
}

.footer-bottom .footer-right a:hover {
    color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}
