/* style.css */

/* 通用样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden; /* 清除浮动 */
    padding: 20px 0;
}

/* 头部样式 */
header {
    background: #333;
    color: #fff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #77aaff 3px solid;
}

/* 修改 .logo 样式，左图右文布局 */
header .logo {
    display: flex;
    align-items: center;
    /* 取消之前的float */
    float: none;
    gap: 15px;
}

header .logo img.logo-img {
    height: 60px;  /* 你可以根据实际需求调整 */
    width: auto;
}

header .logo .logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header .logo .logo-text .slogan {
    font-size: 14px;
    color: #ccc; /* 文字颜色调整为淡灰，跟整体配色协调 */
    margin: 0 0 4px 0;
}

header .logo .logo-text h1 {
    font-size: 28px;
    margin: 0;
    font-weight: bold;
    color: #fff;
}

/* 去掉之前对 h1 和 span 的 float 样式 */
header .logo h1,
header .logo span {
    float: none;
}

/* 导航菜单 */
header nav {
    float: right;
    margin-top: 10px;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 15px;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header a:hover {
    color: #77aaff;
}

/* 主内容区 - Hero Section */
.hero {
    min-height: 400px;
    background: #5577aa url('https://via.placeholder.com/1500x400/5577aa/ffffff?text=背景图') no-repeat center center/cover; /* 示例背景图 */
    text-align: center;
    color: #fff;
    display: flex; /* 使用 Flexbox 垂直居中内容 */
    align-items: center;
    justify-content: center;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    color: #fff;
    background: #77aaff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #5577aa;
}

/* 特色内容区 */
.features {
    padding: 40px 0;
    text-align: center;
    background: #fff;
}

.features h3 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 响应式网格 */
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h4 {
    color: #5577aa;
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* 新闻与更新区 */
.news-updates {
    padding: 40px 0;
    background: #e9e9e9;
}