/*
Theme Name: 厦门富永电碳有限公司官网
Theme URI: https://www.xm-fyc-carbon.com/
Author: Yonger Yeh
Author URI: https://www.dxiamen.com
Description: 适配制造型企业的碳刷官网WordPress主题，基于原有静态HTML开发
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fuyongcarbon
*/

/* 粘贴你原有css/style.css中的所有样式（包括导航栏、响应式、工业风等） */
/* 注意：把原有HTML中内嵌的样式（如contact.html的map-iframe）也复制到这里 */

/* WordPress默认样式重置（可选，避免冲突） */
/* 全局样式 - 工业风基础 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}
body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
a:hover {
  color: #007acc;
}
/* 标题样式 */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}
.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  display: inline-block;
  padding-bottom: 15px;
  border-bottom: 3px solid #007acc;
}
@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2rem;
  }
}
/* 按钮样式 - 工业风按钮 */
.btn-industry {
  padding: 10px 30px;
  border: none;
  border-radius: 0;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-blue {
  background-color: #007acc;
  color: #fff;
}
.btn-blue:hover {
  background-color: #0066b3;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 122, 204, 0.3);
}
.btn-orange {
  background-color: #ff7f24;
  color: #fff;
}
.btn-orange:hover {
  background-color: #e6701f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 127, 36, 0.3);
}
/* 导航栏样式 - 滚动吸顶+渐变 */
.navbar {
  background-color: #000000ff;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 20px 0;
  transition: all 0.3s ease;
}
/* 修复WordPress admin bar样式冲突 */
.admin-bar .navbar {
  top: 0px;
}
@media screen and (max-width: 782px) {
  .admin-bar .navbar {
    top: 46px;
  }
}
.navbar-scrolled {
  background-color: #1a1a1a;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff !important;
  display: flex;
  align-items: center;
}
.navbar-brand i {
  color: #ff7f24;
  margin-right: 10px;
}
.nav-link {
  color: #fff !important;
  font-size: 1rem;
  font-weight: 500;
  margin: 0 15px;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ff7f24;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
/* 保留原有导航基础样式，仅修改active/hover部分 */
/* 导航链接 hover/active 样式 */
.nav-link:hover {
  color: #ff7f24 !important; /* hover时变主色调 */
}
/* 兼容li.active和a.active，确保选中样式生效 */
.nav-item.active .nav-link,
.nav-link.active {
  color: #ff7f24 !important; /* active时白字 */
}
.navbar-toggler {
  border-color: #fff !important;
  border: none;
}
.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none;
  box-shadow: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
@media (max-width: 992px) {
  .navbar-collapse {
    background-color: #1a1a1a;
    padding: 20px;
    margin-top: 10px;
    border-radius: 5px;
  }
  .nav-link {
    margin: 10px 0;
  }
}
/* 板块通用间距 */
.section {
  padding: 100px 0;
  margin-top: 80px;
}
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
    margin-top: 60px;
  }
}
/* 卡片通用样式 */
.card-base {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
  height: 100%;
}
.card-base:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
/* 首页轮播图 */
.carousel-item {
  height: 100vh;
  min-height: 500px;
}
.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  filter: brightness(0.4);
}
.carousel-caption {
  bottom: 50%;
  transform: translateY(50%);
  text-align: left;
  max-width: 800px;
  left: 10%;
  right: auto;
}
.carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
.carousel-caption p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #f1f1f1;
}
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 2rem;
  }
  .carousel-caption p {
    font-size: 1rem;
  }
}
/* 核心优势卡片 */
.advantage-card {
  padding: 40px 20px;
  text-align: center;
}
.advantage-card i {
  font-size: 3rem;
  color: #007acc;
  margin-bottom: 20px;
}
.advantage-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1a1a1a;
}
/* 产品卡片（主页） */
.product-card {
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid #007acc;
}
.product-card .card-body {
  padding: 20px;
}
.product-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
}
/* 产品详情页 */
.product-detail {
  background-color: #fff;
  padding: 50px;
  border: 1px solid #e5e5e5;
}
.product-detail .detail-img {
  width: 100%;
  height: auto;
  border: 1px solid #e5e5e5;
  padding: 10px;
}
.product-detail .param-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}
.product-detail .param-table th,
.product-detail .param-table td {
  border: 1px solid #e5e5e5;
  padding: 12px;
  text-align: left;
}
.product-detail .param-table th {
  background-color: #f5f5f5;
  font-weight: 700;
  color: #1a1a1a;
  width: 30%;
}
/* 新闻卡片（主页） */
.news-card {
  padding: 20px;
}
.news-card .news-date {
  color: #007acc;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.news-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1a1a1a;
}
.news-card p {
  color: #666;
  margin-bottom: 15px;
}
.news-card a i {
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}
.news-card a:hover i {
  margin-left: 10px;
}
/* 新闻详情页 */
.news-detail {
  background-color: #fff;
  padding: 50px;
  border: 1px solid #e5e5e5;
}
.news-detail .news-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 20px;
}
.news-detail .news-meta {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}
.news-detail .news-content {
  line-height: 1.8;
  color: #333;
}
.news-detail .news-content img {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 30px auto;
}
/* 招聘卡片（主页） */
.job-card {
  border-left: 4px solid #007acc;
  padding: 30px;
  margin-bottom: 20px;
}
.job-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.job-card h4 .job-type {
  font-size: 0.9rem;
  padding: 3px 10px;
  background-color: #ff7f24;
  color: #fff;
  border-radius: 20px;
}
.job-card .job-info {
  color: #666;
  margin-bottom: 15px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.job-card .job-info span {
  display: flex;
  align-items: center;
}
.job-card .job-info i {
  color: #007acc;
  margin-right: 5px;
}
.job-card:hover {
  border-left-color: #ff7f24;
}
/* 招聘详情页 */
.job-detail {
  background-color: #fff;
  padding: 50px;
  border: 1px solid #e5e5e5;
}
.job-detail .job-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007acc;
}
.job-detail .job-meta {
  background-color: #f5f5f5;
  padding: 20px;
  margin-bottom: 30px;
  border-left: 4px solid #ff7f24;
}
.job-detail .job-meta p {
  margin: 8px 0;
  font-size: 1.05rem;
}
.job-detail .job-content h5 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 25px 0 15px;
}
.job-detail .job-content p,
.job-detail .job-content li {
  line-height: 1.8;
  color: #333;
}
.job-detail .job-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}
/* 企业概况 */
.profile-content {
  background-color: #fff;
  padding: 50px;
  border: 1px solid #e5e5e5;
}
.profile-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
}
.profile-content h3 i {
  color: #ff7f24;
  margin-right: 10px;
}
.profile-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.profile-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}
.profile-content table th,
.profile-content table td {
  border: 1px solid #e5e5e5;
  padding: 12px;
  text-align: left;
}
.profile-content table th {
  background-color: #f5f5f5;
  font-weight: 700;
  color: #1a1a1a;
}
/* 联系我们 */
.map-container {
  height: 400px;
  width: 100%;
  border: 1px solid #e5e5e5;
  margin-bottom: 50px;
}
.contact-info {
  padding: 50px 40px;
  height: 100%;
}
.contact-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1a1a1a;
  border-bottom: 2px solid #007acc;
  padding-bottom: 15px;
}
.contact-item {
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
}
.contact-item i {
  font-size: 1.5rem;
  color: #007acc;
  margin-right: 15px;
  margin-top: 5px;
  width: 25px;
  text-align: center;
}
.contact-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
}
.contact-item p {
  margin: 0;
  color: #666;
}
.contact-form {
  padding: 50px 40px;
  height: 100%;
}
.contact-form h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1a1a1a;
  border-bottom: 2px solid #007acc;
  padding-bottom: 15px;
}
.form-control {
  border-radius: 0;
  border: 1px solid #e5e5e5;
  padding: 15px;
  margin-bottom: 20px;
}
.form-control:focus {
  box-shadow: none;
  border-color: #007acc;
}
textarea.form-control {
  min-height: 150px;
}
/* 产品分类标签 */
.product-tab {
  margin-bottom: 40px;
  text-align: center;
}
.product-tab .nav-pills {
  justify-content: center;
  border-bottom: 1px solid #e5e5e5;
}
.product-tab .nav-link {
  color: #333 !important;
  padding: 10px 25px;
  border-radius: 0;
  margin: 0 5px;
}
.product-tab .nav-link.active {
  background-color: #007acc !important;
  color: #fff !important;
  border-bottom: 3px solid #ff7f24;
}
/* 页脚 */
.footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 80px 0 30px;
  margin-top: 50px;
}
.footer-about {
  margin-bottom: 40px;
}
.footer-about h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.footer-about h3 i {
  color: #ff7f24;
  margin-right: 10px;
}
.footer-about p {
  color: #ccc;
  margin-bottom: 20px;
}
.footer-social a {
  font-size: 1.5rem;
  color: #ccc;
  margin-right: 15px;
}
.footer-social a:hover {
  color: #ff7f24;
}
.footer-nav {
  margin-bottom: 40px;
}
.footer-nav h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}
.footer-nav ul {
  list-style: none;
  padding: 0;
}
.footer-nav ul li {
  margin-bottom: 10px;
}
.footer-nav ul li a {
  color: #ccc;
}
.footer-nav ul li a:hover {
  color: #007acc;
  padding-left: 5px;
}
.footer-copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid #333;
  color: #999;
}
/* 返回按钮 */
.back-btn {
  margin-bottom: 30px;
  display: inline-block;
}
/* 响应式适配 */
@media (max-width: 768px) {
}

/* 修复懒加载图片样式 */
img[data-lazy-src] {
  opacity: 0;
  transition: opacity 0.3s ease;
}
img[data-lazy-src].loaded {
  opacity: 1;
}

/* 针对浏览器默认懒加载的样式 */
img[loading="lazy"] {
  opacity: 1;
}

/* 解决懒加载占位符样式 */
img[src*='data:image/svg+xml'] {
  background-color: #f0f0f0;
  border: 1px solid #e0e0e0;
}
  .profile-content,
  .product-detail,
  .news-detail,
  .job-detail {
    padding: 30px 20px;
  }
  .contact-info,
  .contact-form {
    padding: 30px 20px;
    margin-bottom: 30px;
  }
  .map-container {
    height: 300px;
  }
  .news-detail .news-title {
    font-size: 1.5rem;
  }
  .job-detail .job-title {
    font-size: 1.5rem;
  }
  .product-detail .param-table th {
    width: 40%;
  }
}

        /* 地图响应式适配（临时内嵌，可迁移至css/style.css） */
        .map-iframe {
            width: 100%;
            height: 450px;
            border: 0;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.05);
        }
        @media (max-width: 768px) {
            .map-iframe {
                height: 350px;
            }
        }
