/* 现代扁平风格 - Kaiyun开云官方网站 - 全新扁平化设计 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #357abd;
    --accent-color: #50c878;
    --text-color: #2c3e50;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --light-gray: #e9ecef;
    --dark-gray: #6c757d;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 扁平导航栏 */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding: 8px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

nav a:hover::after {
    width: 100%;
}

/* 主要内容区域 */
main {
    min-height: calc(100vh - 300px);
}

/* 扁平横幅 */
.banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/banner/banner1.jpg') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.banner .container {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.banner p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* 扁平内容卡片 */
.content-card {
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.content-card h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 36px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.content-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.content-card h3 {
    color: var(--secondary-color);
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.content-card p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

.content-card ul, .content-card ol {
    margin-left: 25px;
    margin-bottom: 25px;
}

.content-card li {
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 16px;
}

/* 扁平按钮 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--accent-color);
}

.btn-secondary:hover {
    background: #45b869;
}

/* 扁平表单 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* 扁平网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background: var(--white);
    padding: 35px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 4px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.card p {
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 15px;
}

/* 扁平页脚 */
footer {
    background: var(--text-color);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: 80px;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

footer h4 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
}

footer p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

footer a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* 扁平新闻列表 */
.news-list {
    list-style: none;
}

.news-item {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    transition: all 0.3s;
    border-left: 4px solid var(--primary-color);
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.news-item h3 {
    margin-bottom: 12px;
}

.news-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    transition: color 0.3s;
}

.news-item a:hover {
    color: var(--primary-color);
}

.news-item p {
    margin-bottom: 12px;
    color: var(--dark-gray);
    line-height: 1.7;
}

.news-meta {
    color: var(--dark-gray);
    font-size: 13px;
    margin-top: 10px;
}

/* 扁平404页面 */
.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-page h1 {
    font-size: 120px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1;
}

.error-page h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 600;
}

.error-page p {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

/* 扁平产品展示 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
}

.product-info p {
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 15px;
}

/* 扁平企业特色 */
.company-intro {
    background: var(--white);
    padding: 80px 0;
    margin: 60px 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 0;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--dark-gray);
    margin-top: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 扁平内容区域 */
.content-section {
    padding: 60px 0;
}

.content-section:first-of-type {
    padding-top: 0;
}

