/* ============================================
   智慧食堂首页样式表 - home.css
   独立样式，不影响其他页面
   ============================================ */

/* === 全局重置与基础 === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === 通用版块 === */
.section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #888;
    margin-bottom: 55px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === 板块1：Banner首屏 === */
.banner {
    height: 100vh;
    min-height: 680px;
    background: linear-gradient(135deg, rgba(26,42,74,0.70) 0%, rgba(15,26,48,0.70) 50%, rgba(26,42,74,0.70) 100%), url('../images/banner.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.banner .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.banner-content {
    max-width: 800px;
}

.banner h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.banner p {
    font-size: 18px;
    color: rgba(255,255,255,0.95);
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 650px;
}

.banner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.banner-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 18px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.banner-tag .icon {
    font-size: 18px;
}

.banner-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 15px 36px;
    background: linear-gradient(135deg, #f5a623, #e8941a);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245,166,35,0.35);
}

.btn-secondary {
    display: inline-block;
    padding: 15px 36px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: #f5a623;
    color: #f5a623;
    background: rgba(245,166,35,0.08);
}

/* === 板块2：技术实力 === */
.tech {
    background: #f8f9fc;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tech-card {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s;
    border-left: 4px solid #f5a623;
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.tech-card .num {
    font-size: 14px;
    font-weight: 700;
    color: #f5a623;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.tech-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 14px;
}

.tech-card ul {
    list-style: none;
}

.tech-card ul li {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    padding-left: 18px;
    position: relative;
}

.tech-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f5a623;
    font-weight: 700;
}

/* === 板块3：核心场景方案 === */
/* === 板块2：智慧食堂一体化解决方案 === */
.solution-overview {
    background: #fff;
    padding: 80px 0;
}

.solution-overview .solution-desc {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.solution-overview .solution-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.solution-overview .solution-images a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.solution-overview .solution-images a:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.solution-overview .solution-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.solution-overview .solution-images a:hover img {
    transform: scale(1.05);
}

/* === 板块3：核心场景方案 === */
.scenes {
    background: #fff;
}

.scenes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.scene-card {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 32px 24px;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.scene-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #f5a623;
}

.scene-card .icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.scene-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 16px;
}

.scene-card .scene-apply {
    font-size: 13px;
    color: #f5a623;
    font-weight: 600;
    margin-bottom: 12px;
}

.scene-card .scene-highlight {
    font-size: 13px;
    color: #555;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.6;
}

.scene-card .scene-effect {
    font-size: 13px;
    color: #666;
    font-weight: 400;
    margin-bottom: 12px;
}

.scene-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

.scene-card .tech-path {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
}

.scene-card .tech-path p {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

/* === 板块4：业态定制方案 === */
.industry {
    background: #f8f9fc;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.industry-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s;
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.industry-card .icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.industry-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 12px;
}

.industry-card .problem {
    font-size: 13px;
    color: #e74c3c;
    margin-bottom: 10px;
    padding: 6px 12px;
    background: rgba(231,76,60,0.06);
    border-radius: 6px;
    line-height: 1.6;
}

.industry-card .solution {
    font-size: 13px;
    color: #1a2a4a;
    font-weight: 600;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: rgba(245,166,35,0.08);
    border-radius: 6px;
    line-height: 1.6;
}

.industry-card .value {
    font-size: 13px;
    color: #22a67e;
    font-weight: 600;
    line-height: 1.6;
}

/* === 板块5：客户见证 === */
.testimonials {
    background: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 32px 28px;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.testimonial-card .client-logo {
    margin-bottom: 12px;
    width: 100%;
}

.testimonial-card .client-logo img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.testimonial-card .client-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 4px;
}

.testimonial-card .client-challenge {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.testimonial-card .client-result {
    font-size: 14px;
    color: #22a67e;
    font-weight: 600;
    line-height: 1.7;
}

.testimonial-more {
    text-align: center;
    margin-top: 40px;
}

.testimonial-more a {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid #1a2a4a;
    color: #1a2a4a;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.testimonial-more a:hover {
    background: #1a2a4a;
    color: #fff;
}

/* === 板块6：对比优势（FAQ表格） === */
.compare {
    background: #f8f9fc;
}

.compare-table-wrap {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.compare-table thead {
    background: #1a2a4a;
    color: #fff;
}

.compare-table th {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.compare-table th:first-child {
    text-align: left;
}

.compare-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: #555;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1a2a4a;
}

.compare-table tbody tr:hover {
    background: #f8f9fc;
}

.compare-table .highlight {
    color: #22a67e;
    font-weight: 700;
}

/* === 板块7：行业洞察 === */
.insight {
    background: #fff;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.insight-card {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 32px 24px;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.insight-card .tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f5a623;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-weight: 600;
}

.insight-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.insight-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
}

.insight-card .insight-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f5a623;
    font-size: 14px;
    font-weight: 600;
    transition: gap 0.3s;
}

.insight-card .insight-link:hover {
    gap: 10px;
}

/* === 板块8：新闻中心 === */
.news-section {
    background: #f8f9fc;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.news-image {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(245,166,35,0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.news-content {
    padding: 24px;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content h3 a {
    color: inherit;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: #f5a623;
}

.news-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed #eee;
    font-size: 13px;
}

.news-date {
    color: #999;
}

.news-read {
    color: #f5a623;
    font-weight: 600;
    transition: gap 0.3s;
}

.news-read:hover {
    color: #e8941a;
}

.news-more {
    text-align: center;
}

.news-more .btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, #f5a623, #e8941a);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.news-more .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(245,166,35,0.35);
}

/* === 板块8：数据与认证 === */
.trust {
    background: linear-gradient(135deg, #1a2a4a 0%, #0f1a30 100%);
    color: #fff;
}

.trust .section-title {
    color: #fff;
}

.trust .section-subtitle {
    color: rgba(255,255,255,0.6);
}

.trust-data {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.trust-data-item {
    text-align: center;
}

.trust-data-item .number {
    font-size: 36px;
    font-weight: 800;
    color: #f5a623;
    margin-bottom: 6px;
}

.trust-data-item .label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.trust-certs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    text-align: center;
}

.trust-certs .cert-item {
    padding: 16px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

/* === 板块9：行动召唤 === */
.cta {
    background: #f8f9fc;
}

.cta-wrap {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 10px;
}

.cta .cta-sub {
    font-size: 16px;
    color: #888;
    margin-bottom: 40px;
}

.cta-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: left;
}

.cta-form .full-width {
    grid-column: 1 / -1;
}

.cta-form label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: block;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: #fff;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
    outline: none;
    border-color: #f5a623;
    box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
}

.cta-form .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cta-form .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
}

.cta-form .checkbox-group input[type="checkbox"] {
    width: auto;
}

.cta-form .btn-primary {
    width: 100%;
    text-align: center;
    font-size: 17px;
    padding: 16px;
}

.cta-promise {
    margin-top: 20px;
    font-size: 13px;
    color: #999;
    line-height: 1.8;
}

.cta-channels {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-channels .channel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.cta-channels .channel-item strong {
    color: #1a2a4a;
}

/* === 响应式 === */
@media (max-width: 992px) {
    .tech-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .scenes-grid,
    .industry-grid,
    .insight-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-data {
        grid-template-columns: repeat(3, 1fr);
    }
    .trust-certs {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 28px;
    }
    .banner {
        height: auto;
        min-height: auto;
        padding: 120px 0 60px;
    }
    .banner h1 {
        font-size: 30px;
    }
    .banner p {
        font-size: 15px;
    }
    .banner-tags {
        flex-direction: column;
    }
    .scenes-grid,
    .industry-grid,
    .insight-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    .trust-data {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-certs {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-form {
        grid-template-columns: 1fr;
    }
    .compare-table th,
    .compare-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
}
