/* ============================================================
   鑫佳源再生资源回收 - 前台样式表
   ============================================================ */

/* 全局变量 */
:root {
    --primary-color: #1a5276;
    --secondary-color: #e67e22;
    --accent-color: #27ae60;
    --dark-color: #2c3e50;
    --light-bg: #f8f9fa;
}

/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

a { color: var(--primary-color); transition: all 0.3s; }
a:hover { color: var(--secondary-color); }

/* 导航栏 */
.navbar { padding: 0.5rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.navbar.bg-primary { background-color: var(--primary-color) !important; }
.navbar-brand span { font-size: 1.2rem; }
.nav-link { font-size: 0.95rem; padding: 0.5rem 0.8rem !important; transition: all 0.3s; }
.nav-link:hover { color: #f39c12 !important; }
.dropdown-menu { border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

/* Banner */
.banner-section .carousel { overflow: hidden; }
.banner-bg {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}
.banner-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26,82,118,0.85) 0%, rgba(26,82,118,0.4) 100%);
}
.banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 2rem 0;
}
.banner-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.banner-desc { font-size: 1.2rem; opacity: 0.95; }

/* 通用区块 */
.section-padding { padding: 80px 0; }
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 3px;
    background: var(--secondary-color);
}
.section-subtitle { color: #888; font-size: 1rem; }

/* 业务卡片 */
.business-card {
    transition: all 0.3s;
    border-radius: 10px;
    overflow: hidden;
}
.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}
.business-card .biz-icon {
    width: 80px; height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,82,118,0.08);
    border-radius: 50%;
}

/* 优势模块 */
.advantage-item {
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s;
}
.advantage-item:hover {
    background: var(--light-bg);
    transform: translateY(-3px);
}
.advantage-item .adv-icon {
    width: 80px; height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 50%;
}

/* 案例卡片 */
.case-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}
.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}
.case-card .card-img-top { height: 200px; object-fit: cover; }

/* 新闻卡片 */
.news-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}
.news-card .card-img-top { height: 180px; object-fit: cover; }

/* 服务流程 */
.process-item {
    padding: 1rem;
    position: relative;
}
.process-item .process-icon {
    width: 70px; height: 70px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
}
.process-item .process-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}
.process-item h6 { font-size: 0.95rem; margin-bottom: 5px; }

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
}

/* 悬浮联系窗 */
.float-contact {
    position: fixed;
    right: 15px;
    bottom: 80px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.float-btn {
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}
.float-btn:hover { transform: scale(1.1); color: #fff; }
.float-phone { background: var(--primary-color); }
.float-wechat { background: #07c160; }
.float-appointment { background: var(--secondary-color); }
.float-top { background: #95a5a6; font-size: 0.9rem; }
.float-label {
    display: none;
    position: absolute;
    right: 60px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
}
.float-btn:hover .float-label { display: block; }
.qr-popup {
    display: none;
    position: absolute;
    right: 60px;
    background: #fff;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    min-width: 150px;
    text-align: center;
}
.float-wechat.show-qr .qr-popup { display: block; }

/* 内页通用 */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}
.page-banner h1 { font-size: 2rem; font-weight: 700; }
.breadcrumb { background: transparent; justify-content: center; }
.breadcrumb-item a { color: rgba(255,255,255,0.8); }
.breadcrumb-item.active { color: rgba(255,255,255,0.6); }

/* 关于我们 */
.about-content { line-height: 2; font-size: 1.05rem; color: #555; }
.about-content p { text-indent: 2em; margin-bottom: 1rem; }

/* 业务详情 */
.biz-detail-content { line-height: 2; color: #555; }
.biz-detail-content ul { padding-left: 1.5rem; }
.biz-detail-content li { margin-bottom: 0.5rem; }

/* 常见问题 */
.faq-item .accordion-button { font-weight: 600; font-size: 1.05rem; }
.faq-item .accordion-body { line-height: 1.8; color: #555; }

/* 预约表单 */
.appointment-form .form-control,
.appointment-form .form-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.appointment-form .form-control:focus,
.appointment-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26,82,118,0.15);
}

/* 联系我们 */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.contact-info-item .icon {
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,82,118,0.08);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-right: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
    .banner-bg { height: 300px; }
    .banner-title { font-size: 1.5rem; }
    .banner-desc { font-size: 0.9rem; }
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 1.5rem; }
    .float-contact { right: 10px; bottom: 60px; }
    .float-btn { width: 42px; height: 42px; font-size: 1rem; }
    .page-banner { padding: 40px 0 25px; }
    .page-banner h1 { font-size: 1.5rem; }
}
