/* 汇睿讨债公司 - 全局样式 */
:root {
    --primary-color: #c41e3a;
    --primary-dark: #a01830;
    --primary-light: #e63950;
    --secondary-color: #1a1a2e;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --white: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部热线横幅 */
.top-bar {
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar a {
    color: var(--white);
}

.top-bar a:hover {
    color: var(--primary-light);
}

.hotline {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hotline-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hotline-item .icon {
    font-size: 18px;
}

.phone-number {
    font-weight: bold;
    font-size: 16px;
    color: var(--primary-light);
}

/* 导航栏 */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-tagline {
    font-size: 12px;
    color: var(--text-light);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 5px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    font-size: 15px;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--primary-color);
    color: var(--white);
}

/* 下拉菜单 */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 4px;
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li a {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-content li a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* 横幅 */
.banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.banner h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.banner p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 20px;
}

.banner-cta {
    display: inline-flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* 热线展示条 */
.hotline-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    text-align: center;
}

.hotline-bar .phone {
    font-size: 28px;
    font-weight: bold;
    margin: 5px 0;
}

.hotline-bar .wechat {
    font-size: 14px;
    opacity: 0.9;
}

/* 服务卡片 */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: var(--white);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.service-card .more {
    color: var(--primary-color);
    font-weight: bold;
}

.service-card .more:hover {
    text-decoration: underline;
}

/* 服务类型列表 */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.service-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.service-item h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.service-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* 优势区块 */
.advantages {
    background: var(--bg-light);
}

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

.advantage-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    flex-shrink: 0;
}

.advantage-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.advantage-content p {
    font-size: 14px;
    color: var(--text-light);
}

/* 流程步骤 */
.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-light);
}

.step::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 20px;
    font-size: 24px;
    color: var(--primary-color);
}

.step:last-child::after {
    display: none;
}

/* 案例展示 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.case-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
}

.case-header h4 {
    font-size: 18px;
}

.case-body {
    padding: 20px;
}

.case-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.case-info-item {
    display: flex;
    flex-direction: column;
}

.case-info-item label {
    font-size: 12px;
    color: var(--text-light);
}

.case-info-item span {
    font-weight: bold;
    color: var(--primary-color);
}

.case-result {
    background: var(--bg-light);
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-result .icon {
    color: var(--primary-color);
    font-size: 20px;
}

.case-result .text {
    font-size: 14px;
}

/* 联系表单 */
.contact-section {
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info .icon {
    color: var(--primary-color);
    font-size: 20px;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-submit {
    width: 100%;
}

/* 地区列表 */
.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.region-item {
    background: var(--bg-light);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

.region-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.region-item a:hover {
    color: var(--white);
}

/* 底部 */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 40px 0 20px;
}

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-light);
}

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

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-contact .icon {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* 微信二维码提示 */
.wechat-qr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.wechat-qr:hover {
    background: rgba(255,255,255,0.2);
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 10px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* 内容区 */
.content-area {
    padding: 40px 0;
}

.content-area h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-area h3 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: var(--text-color);
}

.content-area p {
    margin-bottom: 15px;
    text-align: justify;
}

.content-area ul {
    margin: 15px 0;
    padding-left: 20px;
}

.content-area ul li {
    margin-bottom: 10px;
    list-style: disc;
}

.content-area ol {
    margin: 15px 0;
    padding-left: 20px;
}

.content-area ol li {
    margin-bottom: 10px;
    list-style: decimal;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content h3 {
    margin-bottom: 15px;
}

.modal-wechat {
    width: 200px;
    height: 200px;
    margin: 20px auto;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* 响应式 */
@media (max-width: 992px) {
    nav ul {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav.active ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 10px;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 20px;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
    }
    
    .step::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .banner {
        padding: 40px 0;
    }
    
    .banner h1 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    .hotline-bar .phone {
        font-size: 22px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-bar {
        display: none;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 浮动热线 */
.float-hotline {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-hotline a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.float-hotline .phone {
    background: var(--primary-color);
}

.float-hotline .wechat {
    background: #07c160;
}

.float-hotline a:hover {
    transform: scale(1.1);
}
