/* 菏泽智鼎餐饮设备有限公司 - 营销型官网样式 */
:root {
    --primary: #e60012;
    --primary-dark: #c4000f;
    --secondary: #ff6b35;
    --dark: #1a1a1a;
    --gray: #666;
    --light-gray: #f5f5f5;
    --white: #fff;
    --font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部信息栏 */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar span { margin-right: 20px; }
.top-bar a { color: var(--secondary); text-decoration: none; }

/* 导航 */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 24px; font-weight: bold; color: var(--primary); }
.logo span { color: var(--dark); font-size: 14px; display: block; font-weight: normal; }
nav ul { display: flex; list-style: none; gap: 30px; }
nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
}
nav a:hover, nav a.active { color: var(--primary); }

.mobile-menu-btn { display: none; font-size: 24px; cursor: pointer; }

/* Banner */
.banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,26,26,0.85) 0%, rgba(51,51,51,0.75) 100%);
}
.banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23e60012" stroke-width="0.5" opacity="0.3"/></svg>');
    background-size: 80px 80px;
    opacity: 0.3;
}
.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.banner h1 span { color: var(--secondary); }
.banner p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #ccc;
    position: relative;
    z-index: 1;
}
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(230,0,18,0.3); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    margin-left: 20px;
}
.btn-outline:hover { background: var(--white); color: var(--dark); }

/* 核心优势 */
.section { padding: 80px 0; }
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 15px;
}
.section-title p { color: var(--gray); font-size: 18px; }
.section-title .line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 20px auto 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.advantage-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.advantage-card:hover { transform: translateY(-10px); }
.advantage-card .icon {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: var(--primary);
}
.advantage-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}
.advantage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.advantage-card:hover .advantage-img img {
    transform: scale(1.05);
}
.advantage-card h3 { font-size: 20px; margin-bottom: 15px; }
.advantage-card p { color: var(--gray); font-size: 15px; }

/* 产品展示 */
.products { background: var(--light-gray); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.product-card:hover { transform: translateY(-5px); }
.product-img {
    height: 220px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 60px;
    overflow: hidden;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-info { padding: 25px; }
.product-info h3 { font-size: 18px; margin-bottom: 10px; }
.product-info p { color: var(--gray); font-size: 14px; margin-bottom: 15px; }
.product-info .price {
    color: var(--primary);
    font-size: 20px;
    font-weight: bold;
}

/* 案例 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.case-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    background: var(--white);
}
.case-img {
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
    overflow: hidden;
}
.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.case-card:hover .case-img img {
    transform: scale(1.05);
}
.case-info { padding: 25px; }
.case-info h3 { margin-bottom: 10px; }
.case-info p { color: var(--gray); font-size: 14px; }

/* 新闻 */
.news { background: var(--light-gray); }
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.news-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.news-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}
.news-item .date {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}
.news-item h3 { font-size: 18px; margin-bottom: 15px; line-height: 1.4; }
.news-item p { color: var(--gray); font-size: 14px; margin-bottom: 20px; }
.news-item a { color: var(--primary); text-decoration: none; font-weight: 500; }

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.cta h2 { font-size: 36px; margin-bottom: 20px; }
.cta p { font-size: 18px; margin-bottom: 40px; opacity: 0.9; }
.cta .btn { background: var(--white); color: var(--primary); }
.cta .btn:hover { background: var(--light-gray); }

/* 联系 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-info h3 { font-size: 28px; margin-bottom: 30px; }
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}
.contact-item .icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}
.contact-item h4 { font-size: 18px; margin-bottom: 5px; }
.contact-item p { color: var(--gray); }
.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
}
.contact-form h3 { font-size: 24px; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { font-size: 18px; margin-bottom: 20px; color: var(--white); }
.footer-col p, .footer-col a { color: #aaa; text-decoration: none; line-height: 2; display: block; }
.footer-col a:hover { color: var(--secondary); }
.copyright {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* 面包屑 */
.breadcrumb {
    background: var(--light-gray);
    padding: 20px 0;
    font-size: 14px;
}
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb span { color: var(--primary); }

/* 产品分类筛选 */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}
.filter-btn {
    padding: 10px 25px;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 50px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    color: var(--dark);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(230,0,18,0.2);
}

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.page-header h1 { font-size: 42px; margin-bottom: 15px; }
.page-header p { font-size: 18px; color: #ccc; }

/* 响应式 */
@media (max-width: 992px) {
    .advantages-grid, .products-grid, .cases-grid, .news-list { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
    nav.active { display: block; }
    nav ul { flex-direction: column; padding: 20px; gap: 15px; }
    .banner h1 { font-size: 32px; }
    .banner p { font-size: 16px; }
    .advantages-grid, .products-grid, .cases-grid, .news-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .top-bar .container { flex-direction: column; gap: 5px; text-align: center; }
}
