:root {
    --primary-color: #F37022; /* 爱马仕橙 */
    --primary-hover: #e0631f;
    --secondary-color: #ffffff; /* 白色 */
    --dark-color: #333333;
    --text-color: #666666;
    --light-color: #f9f9f9;
    --gray-color: #777777;
    --border-color: #eaeaea;
    --accent-color: #2c3e50;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Noto Serif SC', 'Songti SC', 'SimSun', 'STSong', 'AR PL New Sung', 'AR PL SungtiL GB', serif;
    background-color: var(--secondary-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 让 footer 在内容少时仍然贴底：使用 flex 布局包裹 main 与 footer */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; width: 100%; }
footer { margin-top: auto; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部和导航 */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Logo 图片保持原始比例，避免横向拉伸 */
.logo img {
    height: 65px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

@media (max-width: 480px) {
    .logo img { height: 52px; }
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 10px;
}

nav {
    margin-right: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 30px;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
    /* 固定导航字体，避免切换到二级页面被其他样式覆盖 */
    font-family: 'Roboto', 'Noto Serif SC', 'Songti SC', 'SimSun', 'STSong', serif !important;
}

nav a:hover {
    color: var(--primary-color);
}

nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* 修改关于因诺部分的样式 */
#home .section-subtitle {
    text-align: left; /* 左对齐 */
    max-width: 100%; /* 允许文字扩展到最大宽度 */
    padding: 20px;   /* 增加内边距 */
    line-height: 1.8; /* 增加行高 */
    font-size: 1rem; /* 缩小字体 */
}

#home .section-subtitle p {
    margin-bottom: 0.5em; /* 段落间距 */
    text-indent: 0; /* 取消首行缩进 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    #home .section-subtitle {
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* 通用部分样式 */
section {
    padding: 100px 0;
    min-height: 80vh;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

/* 首页"关于因诺"标题特殊间距 */
section#home .section-title {
    margin-top: 40px;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-subtitle {
    text-align: left;
    max-width: 700px;
    margin: 20px auto 60px;
    color: var(--gray-color);
    font-size: 1.1rem;
}

/* 内容区域样式 */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    padding: 25px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 经营理念 + 关键数据合并布局 */
.combined-mission-stats {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: stretch;
    margin-top: 40px;
    width: 100%;
}

/* 让“经营理念”整体向右移动一些（桌面端） */
@media (min-width: 993px) {
    .combined-mission-stats .mission-column { padding-left: 40px; }
}

.mission-column, .stats-column { display: flex; flex-direction: column; }

.mission-title {
    font-family: 'Microsoft YaHei', '微软雅黑', 'Noto Serif SC', sans-serif;
    font-weight: 900;
    font-size: 2.0rem;
    margin-bottom: 30px;
    color: #000;
    text-align: left; /* 标题左对齐 */
}

.mission-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 28px; }
.mission-list li { display: flex; align-items: flex-start; gap: 16px; }

.mission-icon {
    width: 54px; height: 54px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--primary-color);
    border-radius: 14px;
    color: var(--primary-color);
    background: linear-gradient(145deg, rgba(243,112,34,0.08), rgba(243,112,34,0.02));
    box-shadow: 0 4px 12px -3px rgba(243,112,34,0.25);
    position: relative;
}

.mission-icon i { font-size: 1.4rem; }

.mission-text { font-size: 1.02rem; line-height: 1.75; color: #444; font-weight: 500; }

.stats-grid.compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    height: 100%;
    align-content: center;
}

/* 统计项与标题 */
.stat-item { display: flex; flex-direction: column; align-items: flex-start; }
.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.stat-number-only {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    position: relative;
}

.stat-number-only::after {
    display: none;
}
 .stat-number-only:hover { transform: none; }

@media (max-width: 992px) {
    .combined-mission-stats { grid-template-columns: 1fr; gap: 50px; }
    .stats-grid.compact { gap: 22px; }
    .mission-title { text-align: left; }
}

@media (max-width: 600px) {
    .stat-number-only { font-size: 2.4rem; padding: 0; }
    .stat-label { font-size: 0.8rem; letter-spacing: .5px; }
    .mission-list li { gap: 12px; }
    .mission-icon { width: 46px; height: 46px; border-radius: 12px; }
    .mission-icon i { font-size: 1.2rem; }
    .mission-text { font-size: 0.95rem; }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 页脚 */
footer {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 0 5px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 5px;
    color: #bbb;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 增加 body 顶部内边距，防止固定导航栏遮挡内容 */
    body {
        padding-top: 150px;
    }

    .header-container {
        flex-direction: column;
        padding: 10px 15px;
    }
    
    nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 15px; /* 行间距8px，列间距15px */
    }
    
    nav li {
        margin: 0;
    }
    
    nav a {
        font-size: 15px;
    }
    
    section {
        padding: 40px 0;
    }

    /* 首页顶部不需要内边距，让轮播图紧贴导航栏 */
    section#home {
        padding-top: 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* 首页核心业务卡片悬停效果 */
.home-business-card {
    padding: 30px !important;
    background: #fff;
    /* border removed as requested */
    border-radius: 16px;
    /* shadow removed */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(.19,1,.22,1);
}

.home-business-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle at 30% 30%, rgba(243,112,34,0.08), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.home-business-card:hover::before {
    opacity: 0; /* 取消悬停时的光晕效果 */
}

.home-business-card:hover {
    transform: none; /* 取消悬停位移与缩放 */
    /* no shadow on hover */
    /* no border color change */
}

.home-business-card i {
    transition: transform 0.45s ease, filter 0.45s ease;
}

.home-business-card:hover i {
    transform: none; /* 取消图标悬停动效 */
    filter: none;
}

/* 用户偏好减少动效时，禁用位移动画 */
@media (prefers-reduced-motion: reduce) {
    .home-business-card,
    .home-business-card:hover {
        transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        transform: none !important;
    }
    .home-business-card:hover::before { opacity: 0.35; }
    .home-business-card:hover i { transform: none; filter: none; }
}


/* 因诺资讯卡片样式 */
.news-card {
    width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    padding: 0 !important;
    text-align: left !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    background-color: white !important;
    border: 1px solid rgba(243, 112, 34, 0.1) !important;
    overflow: hidden !important;
    min-height: 150px !important;
}

.news-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.news-image {
    width: 150px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    height: 160px !important;
}

.news-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 150px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.news-card:hover .news-image img {
    transform: scale(1.05) !important;
}

.news-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 20px !important;
    position: relative !important;
}

.news-text {
    flex: 1 !important;
}

.news-text h4 {
    margin: 0 0 12px 0 !important;
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif !important;
}

.news-text p {
    margin: 0 !important;
    font-size: 0.9rem !important;
    color: #666 !important;
    line-height: 1.5 !important;
    text-align: justify !important;
}

.news-date {
    position: absolute !important;
    bottom: 15px !important;
    right: 20px !important;
    text-align: center !important;
}

.date-month {
    display: block !important;
    font-size: 0.8rem !important;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.date-year {
    display: block !important;
    font-size: 0.7rem !important;
    color: #999 !important;
}

/* 特定标题字体样式 - 微软雅黑黑色加粗 */
/* 关于因诺标题 */
#home .section-title h2 {
    font-family: 'Microsoft YaHei', '微软雅黑', 'Noto Serif SC', sans-serif;
    font-weight: 900;
    color: #000000;
}

/* 经营理念、核心业务、因诺资讯标题 */
#home h3[style*="color: var(--primary-color)"] {
    font-family: 'Microsoft YaHei', '微软雅黑', 'Noto Serif SC', sans-serif;
    font-weight: 900;
    color: #000000 !important;
    font-size: 2.0rem !important;
}

/* 服务页面的核心业务标题 */
#services .manner-text h3 {
    font-weight: 900;
    color: var(--primary-color) !important;
}

/* 移动端因诺动态卡片优化 */
@media (max-width: 768px) {
    .news-card {
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
    }

    .news-image {
        width: 100% !important;
        height: 180px !important;
    }

    .news-content {
        padding: 15px !important;
    }

    .news-text h4 {
        font-size: 1.05rem !important;
        margin-bottom: 8px !important;
    }

    .news-text p {
        font-size: 0.9rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .news-date {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 10px;
        text-align: left !important;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .date-month {
        font-size: 0.85rem !important;
    }
    
    .date-year {
        font-size: 0.85rem !important;
    }
}
