/* ===== 易恒环保官网 自定义样式 ===== */

:root {
    --primary: #1a8a4c;
    --primary-dark: #0f6b38;
    --primary-light: #e8f5e9;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer {
    margin-top: auto;
}

.text-light-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ===== 顶部信息条 ===== */
.topbar-info {
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    padding: 5px 0;
}

/* ===== 导航 ===== */
.navbar {
    border-bottom: 3px solid var(--primary);
}

.navbar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.6rem 1rem !important;
    transition: color 0.2s;
}

.navbar .nav-link:hover {
    color: var(--primary);
}

.navbar .nav-link.active {
    color: var(--primary) !important;
    font-weight: 700;
}

/* ===== Hero 区域 ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #0f6b38 0%, #1a8a4c 40%, #2e9e63 70%, #43a047 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ===== 通用区块标题 ===== */
.section-title {
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    border-radius: 3px;
    background: var(--primary);
}

.text-start.section-title::after,
.text-md-start.section-title::after {
    left: 0;
    transform: none;
}

/* ===== 业务范围卡片 ===== */
.service-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.service-detail-card {
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.service-detail-card .service-icon {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

/* ===== 统计数字 ===== */
.stat-box {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
}

.stat-num {
    font-size: 1.8rem;
}

/* ===== 页面横幅 ===== */
.page-banner {
    background: linear-gradient(135deg, #0f6b38, #1a8a4c 60%, #2e9e63);
    padding: 40px 0;
}

/* ===== 公示列表 ===== */
.notice-title {
    font-size: 1.02rem;
}

.notice-title:hover {
    color: var(--primary) !important;
}

.nav-pills .nav-link {
    color: #555;
    border-radius: 20px;
}

.nav-pills .nav-link.active {
    background: var(--primary);
    color: #fff;
}

/* ===== 工具卡片 ===== */
.tool-thumb {
    height: 160px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.tool-thumb-placeholder {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px 12px 0 0;
}

.tool-card,
.tool-detail-card {
    border-radius: 12px;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover,
.tool-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* ===== 关于我们 ===== */
.about-content {
    font-size: 1.02rem;
}

.cert-img {
    height: 160px;
    object-fit: contain;
    background: #fafafa;
}

.case-img {
    height: 180px;
    object-fit: cover;
}

/* ===== 联系我们 ===== */
.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 16px;
    flex-shrink: 0;
}

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, #0f6b38, #1a8a4c 60%, #2e9e63);
}

/* ===== 回到顶部 ===== */
#backToTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    display: none;
    z-index: 999;
}

#backToTop.show {
    display: block;
}

/* ===== 页脚 ===== */
.footer-title {
    color: #fff;
    font-weight: 700;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.footer-links li {
    padding: 3px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

/* ===== 公示正文 ===== */
.notice-content {
    font-size: 1.02rem;
    color: #444;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .hero-section {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
}
