/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #454F5E;
    background-color: #F0F5FA;
}

/* 头部样式 */
header {
    background-color: #FFFFFF;
    color: #454F5E;
    height: 64px;
    position: static;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.8rem;
    color: #454F5E;
}

nav {
    width: 100%;
    text-align: center;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: #333333;
    text-decoration: none;
    font-size: 19px;
    line-height: 64px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

/* ks100文件夹内页面的菜单样式 */
.ks100-nav ul li a {
    font-size: 18px;
    letter-spacing: 3px;
}

.ks100-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 2rem;
}

.ks100-nav ul {
    justify-content: center;
}

.ks100-nav ul li {
    margin: 0 8px;
}

nav ul li a:hover {
    color: #007AFF;
    border-bottom: 2px solid #007AFF;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    display: inline-block;
    padding-right: 15px;
}

/* 下拉菜单三角指示器 */
.dropdown > a {
    position: relative;
    display: inline-block;
}

.dropdown > a::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(calc(-50% + 3px));
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #999;
    margin-left: 2px;
}

.dropdown-content {
    display: block;
    position: absolute;
    background-color: #FFFFFF;
    width: 135px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 4px;
    padding: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.dropdown-content li {
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content li a {
    color: #555555;
    padding: 0 10px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    height: 35px;
    line-height: 35px;
    background-color: #FFFFFF;
    border-bottom: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content li a:hover {
    background-color: #F5F7FA;
    color: #007AFF;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown:hover > a {
    color: #007AFF;
}

/* 主内容区域 */
main {
    padding: 2rem 0;
}

/* 英雄区域 */
.hero {
    background-color: #2C5282;
    color: #FFFFFF;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: #2C5282;
    color: #FFFFFF;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-size: 30px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #1a365d;
}

/* 通用 section 样式 */
section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

/* 关于我们 */
.about {
    background-color: #fff;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 服务区域 */
.services {
    background-color: #f9f9f9;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.service-item {
    background-color: #fff;
    padding: 2rem;
    margin: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
}

.service-item h3 {
    margin-bottom: 1rem;
    color: #4CAF50;
}

/* 下载区域 */
.downloads {
    background-color: #fff;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.download-item {
    background-color: #f9f9f9;
    padding: 2rem;
    margin: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
}

.download-item h3 {
    margin-bottom: 1rem;
    color: #4CAF50;
}

.download-item p {
    margin-bottom: 1.5rem;
}

/* 联系我们 */
.contact {
    background-color: #f9f9f9;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.contact p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* 产品信息区域 */
.product-info {
    background-color: #fff;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.feature-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.feature-item {
    background-color: #f9f9f9;
    padding: 2rem;
    margin: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #2C5282;
}

/* 页脚样式 */
footer {
    background-color: #F5F7FA;
    color: #454F5E;
    text-align: left;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

footer p {
    font-size: 20px;
}

footer a {
    color: #454F5E;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007AFF;
}

/* ks100产品介绍页面容器样式 */
.text-container {
    width: 1200px;
    height: 500px;
    margin: 0 auto;
    background-color: #F0F5FA;
}

.product-use-container {
    width: 1200px;
    min-height: 500px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 20px;
    box-sizing: border-box;
}

.spacing-container {
    height: 50px;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        margin-left: 1rem;
        text-align: center;
        justify-content: center;
    }

    nav {
        margin-top: 1rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    nav ul li a {
        font-size: 25px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .service-list,
    .download-list {
        flex-direction: column;
        align-items: center;
    }

    .service-item,
    .download-item {
        max-width: 100%;
        margin: 1rem 0;
    }
}