/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航 */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 16px;
}

nav ul li a:hover {
    color: #0066cc;
}

/* 主banner */
.hero {
    background: url('assets/banner-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #00ccff;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* 产品服务 */
.products {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #333;
}

.product-item {
    margin-bottom: 60px;
}

.product-item h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #0066cc;
}

.product-images {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.product-images img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.full-width-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* 联系我们 */
.contact {
    background: #f5f5f5;
    padding: 60px 0;
}

.contact-info {
    text-align: center;
    font-size: 18px;
}

.contact-info p {
    margin: 10px 0;
}

/* 页脚 */
footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
    opacity: 0.8;
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .product-images img {
        max-width: 100%;
    }
    
    .mobile-showcase img {
        max-width: 150px;
    }
} 

/* 修改logo相关样式 */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 40px;
}

.company-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-name h1 {
    font-size: 24px;
    color: #0066cc;
    margin: -3px 0 -2px;
    line-height: 1.2;
    font-weight: normal;
    font-family: "华文行楷", "STXingkai", sans-serif;
}

.company-name p {
    font-size: 10px;
    color: #0066cc;
    margin: 0;
    text-transform: uppercase;
    line-height: 1;
    padding-left: 2px;
}

/* MIS系统图片布局 */
.mis-showcase {
    display: flex;
    justify-content: space-between;  /* 左右分布 */
    gap: 30px;  /* 图片之间的间距 */
}

.mis-showcase img {
    width: calc(50% - 15px);  /* 每张图片占50%宽度，减去间距的一半 */
    height: auto;
}

/* 添加平滑滚动 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;  /* 设置滚动偏移量，与header高度相同 */
}

/* 修改链接点击行为 */
a[href="#home"] {
    scroll-margin-top: 0;  /* 确保回到顶部时不会有偏移 */
}

/* 投票系统页面特定样式 */
.vote-system-intro {
    max-width: 1000px;
    margin: 0 auto;
}

.system-description {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
    text-align: justify;
}

.system-features {
    margin-bottom: 40px;
}

.system-features h3 {
    font-size: 20px;
    color: #0066cc;
    margin-bottom: 20px;
}

.system-features ul {
    list-style: none;
}

.system-features li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
}

.showcase-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.showcase-images img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .showcase-images img {
        max-width: 150px;
    }
    
    .system-description {
        font-size: 14px;
    }
    
    .system-features li {
        font-size: 14px;
    }
}

.detail-link {
    text-align: right;
    margin-top: 20px;
}

.detail-link a {
    color: #0066cc;
    text-decoration: none;
    font-size: 16px;
}

.detail-link a:hover {
    text-decoration: underline;
}

.title-with-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.title-with-link h3 {
    margin-bottom: 0;  /* 覆盖原有的margin */
}

.title-with-link .detail-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 16px;
}

.title-with-link .detail-link:hover {
    text-decoration: underline;
}