/* 美音美言新官网 - 全局样式表 
   版本：1.4 (首页双按钮布局完善版)
*/

:root {
    --brand-red: #E60012;
    --text-main: #1A1A1A;
    --text-body: #4A4A4A;
    --nav-height: 90px;
}

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

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-body);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* --- 导航栏 --- */
header {
    background: #fff;
    border-bottom: 2px solid var(--brand-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.nav-box {
    height: var(--nav-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo 呼吸效果 */
.logo img { 
    height: 65px; 
    display: block; 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
}
.logo img:hover { 
    transform: scale(1.08); 
}

.menu { display: flex; list-style: none; gap: 30px; }
.menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}
.menu a:hover, .menu a.active { color: var(--brand-red); }
.menu a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: 0; left: 0; background-color: var(--brand-red);
    transition: 0.3s;
}
.menu a:hover::after, .menu a.active::after { width: 100%; }

/* --- 巨幕 Banner --- */
.hero-banner {
    height: 500px;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../images/banner.jpg') no-repeat center/cover;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.hero-content h1 { font-size: 48px; margin-bottom: 20px; letter-spacing: 4px; }
.hero-content p { font-size: 20px; opacity: 0.9; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 20px; justify-content: center; }
.btn-primary { 
    background: var(--brand-red); color: #fff; text-decoration: none;
    padding: 12px 35px; border-radius: 4px; transition: 0.3s;
}
.btn-secondary {
    border: 1px solid #fff; color: #fff; text-decoration: none;
    padding: 12px 35px; border-radius: 4px; transition: 0.3s;
}
.btn-primary:hover { background: #cc0010; }
.btn-secondary:hover { background: #fff; color: var(--brand-red); }

/* --- 业务展示 --- */
.home-services { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; color: var(--text-main); }
.title-line { width: 50px; height: 3px; background: var(--brand-red); margin: 15px auto; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-item {
    padding: 40px; text-align: center; border: 1px solid #eee;
    transition: 0.4s; border-radius: 8px;
}
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--brand-red);
}
.service-item .icon { font-size: 40px; margin-bottom: 20px; }
.service-item h3 { margin-bottom: 15px; color: var(--text-main); }

/* --- 工具推广 (双按钮排版) --- */
.tools-promo {
    background: var(--brand-red);
    padding: 80px 20px;
    color: #fff;
    text-align: center;
}
.promo-content h2 { font-size: 36px; margin-bottom: 20px; }
.promo-btns {
    display: flex;
    justify-content: center;
    gap: 20px; /* 两个按钮之间的间距 */
    margin-top: 30px;
    flex-wrap: wrap; /* 手机端自动换行 */
}
.btn-outline {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: 0.3s;
    min-width: 200px; /* 保证两个按钮宽度一致更美观 */
}
.btn-outline:hover { background: #fff; color: var(--brand-red); }

/* --- 页脚 --- */
footer { background: #000; color: #fff; padding: 80px 20px 40px; }
.footer-container { max-width: 1200px; margin: 0 auto; text-align: center; }
.brand-line { width: 60px; height: 3px; background: var(--brand-red); margin: 20px auto 35px; }
.footer-info p { color: #ccc; margin: 10px 0; font-size: 15px; }
.copyright { margin-top: 60px; color: #555; font-size: 13px; border-top: 1px solid #1a1a1a; padding-top: 20px; }

/* 响应式调整 */
@media (max-width: 768px) {
    .service-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 32px; }
    .promo-btns { flex-direction: column; align-items: center; }
}
/* --- 合作伙伴板块 --- */
.partners-section {
    padding: 80px 20px;
    background-color: #ffffff; /* 保持纯净白色 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.partner-grid {
    display: grid;
    /* 自动适应宽度：每行最少150px，自动充满空间 */
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 20px;
    align-items: center;
}

.partner-item {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0; /* 极淡的边框线，增加方块感 */
    padding: 15px;
    transition: all 0.3s ease;
    filter: grayscale(100%); /* 默认灰色，显得专业且统一 */
    opacity: 0.6;
    /* 👇 这是新增的两行：去掉 a 标签自带的下划线，并把鼠标变成小手 */
    text-decoration: none; 
    cursor: pointer;
}

.partner-item:hover {
    filter: grayscale(0%);   /* 鼠标移入恢复彩色 */
    opacity: 1;
    border-color: var(--brand-red); /* 悬停时边框变红 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.partner-item img {
    max-width: 100%;
    max-height: 50px; /* 统一限制高度，防止大LOGO突兀 */
    object-fit: contain;
}

/* 手机端适配：每行显示2个 */
@media (max-width: 480px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- 服务中心专用样式 --- */
.inside-banner {
    height: 300px;
    background: #333; /* 你可以用 images/banner.jpg 替换此背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.inside-banner h1 { font-size: 36px; letter-spacing: 4px; margin-bottom: 10px; }

.service-detail { padding: 80px 20px; }

.service-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

/* 实现左右交替布局 */
.service-block.reverse { flex-direction: row-reverse; }

.service-img { flex: 1; }
.service-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-text { flex: 1; }
.service-text h2 { font-size: 28px; color: var(--text-main); margin-bottom: 15px; }
.short-line { width: 40px; height: 3px; background: var(--brand-red); margin-bottom: 20px; }
.service-text p { font-size: 16px; color: var(--text-body); line-height: 1.8; }

/* 手机端适配 */
@media (max-width: 768px) {
    .service-block, .service-block.reverse { flex-direction: column; gap: 30px; }
}

/* --- 服务中心 - 单页深度完善样式 --- */

.category-tag {
    color: var(--brand-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.main-desc {
    margin-bottom: 25px;
    color: #666;
    font-size: 15px;
}

/* 子业务标签网格 */
.sub-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sub-service-grid span {
    background: #fdf2f2;
    color: #444;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    border-left: 3px solid var(--brand-red);
    transition: 0.3s;
}

.sub-service-grid span:hover {
    background: var(--brand-red);
    color: #fff;
    transform: translateX(5px);
}

/* 左右布局微调 */
.service-block { display: flex; align-items: center; gap: 80px; margin-bottom: 120px; }
.service-block.reverse { flex-direction: row-reverse; }
.service-img, .service-text { flex: 1; }
.service-img img { width: 100%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* --- 关于我们 - 整合单页样式 --- */
.container-small {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section {
    padding: 80px 0;
}

.bg-light { background-color: #f9f9f9; }
.bg-white { background-color: #ffffff; }

.about-content {
    font-size: 17px;
    line-height: 2;
    color: #555;
    text-align: justify;
}

.about-content strong {
    color: var(--brand-red);
}

/* 企业文化卡片 */
.culture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.culture-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border-top: 4px solid var(--brand-red);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.culture-card h3 { margin-bottom: 15px; color: var(--text-main); }

/* 联系方式排版 */
.contact-box {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
}

.contact-item {
    flex: 1;
    text-align: center;
}

.c-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.contact-item h4 {
    margin-bottom: 8px;
    color: var(--text-main);
}

/* 二维码区域 */
.qr-area {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 140px;
    height: 140px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    padding: 5px;
}

.qr-item p {
    font-size: 14px;
    color: #888;
}

/* 手机适配 */
@media (max-width: 768px) {
    .culture-grid, .contact-box, .qr-area {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 30px;
    }
}

/* --- 新闻动态列表优化版 --- */
.container-mid { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 60px 20px;
}

.news-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
}

/* 1. 整体点击区域与红色亮起效果 */
.news-card {
    display: flex;
    background: #fff;
    padding: 25px; 
    border-bottom: 1px solid #eee;
    gap: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* 让过渡更丝滑 */
    text-decoration: none; 
    color: inherit; 
    border-radius: 12px; /* 稍微加大圆角，配合发光效果更柔和 */
}

.news-card:hover {
    background-color: #fff9f9; /* 稍微加强一点底部的红韵背景 */
    /* 核心修改：增加垂直偏移到 20px，模糊半径到 60px，透明度提高到 0.3 */
    box-shadow: 0 20px 30px rgba(230, 0, 18, 0.4); 
    transform: translateY(-8px); /* 悬浮高度再拉高 2px，增强立体感 */
    border-bottom-color: transparent;
}

.news-card:hover h3 { 
    color: var(--brand-red); 
}

/* 2. 日期：更大且斜体 */
.n-date { 
    color: #999; 
    font-size: 16px; 
    font-style: italic; 
    display: block;
    margin-bottom: 8px;
}

/* 3. 图片与标题样式 */
.n-img { flex: 0 0 240px; height: 160px; overflow: hidden; border-radius: 4px; }
.n-img img { width: 100%; height: 100%; object-fit: cover; }

.n-info { flex: 1; }
.n-info h3 { 
    font-size: 20px; 
    margin-bottom: 12px; 
    line-height: 1.4; 
    color: var(--text-main);
}

.news-card:hover h3 { 
    color: var(--brand-red); 
}

/* 4. 摘要文字显示 */
.n-info p { 
    color: #666; 
    font-size: 14px; 
    line-height: 1.6;
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

@media (max-width: 768px) {
    .news-card { flex-direction: column; gap: 15px; padding: 15px; }
    .n-img { flex: none; width: 100%; }
}

/* --- 新闻详情页样式优化 --- */
.container-article {
    max-width: 850px; 
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.back-nav { margin-bottom: 30px; }
.back-nav a { color: #888; text-decoration: none; font-size: 14px; }
.back-nav a:hover { color: var(--brand-red); }

.news-full-content h1 {
    font-size: 32px;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 12px; /* 缩减标题与日期之间的间距  */
    text-align: center;
}

.art-meta {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px; /* 缩减日期到横线的距离  */
    margin-bottom: 20px;  /* 缩减横线到正文的距离（解决你说的“空行”感）  */
    color: #999;
    font-size: 16px;
}

.art-body {
    line-height: 2;
    color: #444;
    font-size: 20px;
    word-wrap: break-word;
}

/* 核心优化：强制去掉正文第一段的顶部边距，彻底消除“多出一行”的错觉  */
.art-body > *:first-child {
    margin-top: 0 !important;
}

.art-body p { margin-bottom: 20px; }

/* --- 修复详情页正文图片超宽及居中问题 --- */
.art-body img {
    max-width: 100%;      /* 限制图片最大宽度不超过外层容器 */
    height: auto;         /* 高度自动，绝对保持原始宽高比不变 */
    display: block;       /* 将图片转换为块级元素，使其独占一行 */
    margin: 30px auto;    /* 左右 auto 实现绝对居中，上下留出 30px 的呼吸空间 */
    border-radius: 6px;   /* （可选）增加一点轻微的圆角，让图片看起来更现代 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* （可选）加一点极淡的阴影提升质感 */
}

/* --- 新闻页顶部 Banner 样式 --- */
.news-banner {
    width: 100%;
    height: 450px; /* 匹配你图片的 450 宽度 */
    /* 请将 'your-image-name.jpg' 替换为你实际的背景图片文件名 */
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
                url('../images/1626490818.jpg') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.news-banner h1 {
    font-size: 58px;
    margin-bottom: 15px;
    letter-spacing: 6px;
    font-weight: 600;
}

.news-banner p {
    font-size: 28px;
    opacity: 3;
    letter-spacing: 3px;
}

.banner-line {
    width: 40px;
    height: 3px;
    background: var(--brand-red);
    margin: 20px auto 0;
}

/* 适配移动端：缩小 Banner 高度，避免手机上占据过多屏幕 */
@media (max-width: 768px) {
    .news-banner {
        height: 250px;
    }
    .news-banner h1 {
        font-size: 32px;
    }
    .news-banner p {
        font-size: 14px;
    }
}

/* --- 技术支持页顶部 Banner 样式 --- */
.support-banner {
    width: 100%;
    height: 450px;
    /* 你可以换一张更符合“技术支持”意境的图片，暂用原背景图示例 */
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), 
                url('../images/1626490929.jpg') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.support-banner h1 {
    font-size: 58px;
    margin-bottom: 15px;
    letter-spacing: 6px;
    font-weight: 600;
}

.support-banner p {
    font-size: 28px;
    opacity: 3;
    letter-spacing: 3px;
}

/* --- 页脚版权与备案链接样式 --- */
.copyright a {
    color: #888; /* 默认使用低调的深灰色 */
    text-decoration: none; /* 去除难看的下划线 */
    transition: color 0.3s ease; /* 颜色渐变过渡更平滑 */
}

.copyright a:hover {
    color: var(--brand-red); /* 鼠标悬停时，亮起公司品牌红 */
}

.copyright .divider {
    margin: 0 12px;
    color: #333; /* 极暗的分隔符，增加层次感 */
    font-size: 12px;
}