/* ================================
   武汉调查公司 - 主样式表
   简约大气风格
   ================================ */

/* 重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #c8161d;
}

ul {
    list-style: none;
}

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

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #c8161d;
    color: #fff;
    border-color: #c8161d;
}

.btn-primary:hover {
    background-color: #a81218;
    border-color: #a81218;
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: #c8161d;
    border-color: #c8161d;
}

.btn-outline:hover {
    background-color: #c8161d;
    color: #fff;
}

.btn-white {
    background-color: #fff;
    color: #c8161d;
    border-color: #fff;
}

.btn-white:hover {
    background-color: #f5f5f5;
    color: #c8161d;
}

.btn-block {
    display: block;
    width: 100%;
}

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

/* ================================
   头部样式
   ================================ */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo a {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 24px;
    color: #c8161d;
    font-weight: 700;
}

.logo .slogan {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list li a {
    font-size: 16px;
    color: #333;
    padding: 10px 0;
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #c8161d;
    transition: width 0.3s;
}

.nav-list li a:hover::after,
.nav-list li.active a::after {
    width: 100%;
}

.nav-list li.active a {
    color: #c8161d;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-icon {
    font-size: 24px;
}

.phone-number {
    font-size: 18px;
    font-weight: 600;
    color: #c8161d;
}

/* ================================
   Banner样式
   ================================ */
.banner {
    height: 600px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h2 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

/* ================================
   通用Section样式
   ================================ */
.section {
    padding: 80px 0;
}

.bg-gray {
    background-color: #f5f7fa;
}

.bg-primary {
    background-color: #c8161d;
    color: #fff;
}

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

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 16px;
    color: #666;
}

/* ================================
   页面标题
   ================================ */
.page-title {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    margin-top: 80px;
    text-align: center;
}

.page-title h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: #fff;
}

/* ================================
   服务概览
   ================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-icon img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.service-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.link-more {
    font-size: 14px;
    color: #c8161d;
}

.link-more:hover {
    color: #a81218;
}

/* ================================
   为什么选择我们
   ================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 30px;
}

.feature-number {
    font-size: 48px;
    font-weight: 700;
    color: #c8161d;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 16px;
    color: #666;
}

/* ================================
   新闻概览
   ================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 180px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-content h3 a:hover {
    color: #c8161d;
}

.news-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 15px;
}

/* ================================
   CTA区域
   ================================ */
.cta {
    text-align: center;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ================================
   页脚样式
   ================================ */
.footer {
    background-color: #1a1a2e;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 8px;
}

.footer h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: #c8161d;
}

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

.footer-bottom p {
    margin-bottom: 5px;
}

/* ================================
   关于我们页面
   ================================ */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 16px;
    color: #666;
    line-height: 2;
    margin-bottom: 20px;
}

.about-image {
    background: #f0f0f0;
    height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    color: #999;
    font-size: 18px;
}

/* 优势网格 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.advantage-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.advantage-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 服务流程 */
.process-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.process-step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #c8161d;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 13px;
    color: #666;
}

/* 团队网格 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #c8161d 0%, #e8353d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 18px;
}

.team-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.team-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

/* ================================
   服务项目页面
   ================================ */
.service-detail {
    padding: 60px 0;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.service-content.reverse {
    direction: rtl;
}

.service-content.reverse .service-info,
.service-content.reverse .service-image {
    direction: ltr;
}

.service-info h2 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.service-desc {
    font-size: 16px;
    color: #666;
    line-height: 2;
    margin-bottom: 30px;
}

.service-info h3 {
    font-size: 20px;
    color: #333;
    margin: 25px 0 15px;
}

.service-list {
    margin-bottom: 30px;
}

.service-list li {
    font-size: 15px;
    color: #666;
    line-height: 2;
    padding-left: 20px;
    position: relative;
}

.service-list li::before {
    content: '•';
    color: #c8161d;
    position: absolute;
    left: 0;
}

.service-image {
    background: #f0f0f0;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 服务承诺 */
.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.promise-item {
    background: #fff;
    padding: 40px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.promise-icon {
    width: 60px;
    height: 60px;
    background: #c8161d;
    color: #fff;
    font-size: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.promise-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.promise-item p {
    font-size: 14px;
    color: #666;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.faq-question {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    cursor: pointer;
}

.faq-answer {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* ================================
   新闻列表页面
   ================================ */
.news-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.news-main .news-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.news-main .news-image {
    height: 160px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
    background: #c8161d;
    border-color: #c8161d;
    color: #fff;
}

/* 侧边栏 */
.sidebar-widget {
    background: #f5f7fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c8161d;
}

.hot-articles li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.hot-articles li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-articles li a {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.hot-articles li a:hover {
    color: #c8161d;
}

.contact-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* ================================
   新闻详情页
   ================================ */
.news-article {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.article-header h1 {
    font-size: 28px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    gap: 20px;
}

.article-content {
    font-size: 16px;
    color: #333;
    line-height: 2;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2,
.article-content h3 {
    margin: 30px 0 15px;
}

.related-articles li {
    margin-bottom: 10px;
}

.related-articles li a {
    font-size: 14px;
    color: #666;
}

.related-articles li a:hover {
    color: #c8161d;
}

.news-nav {
    margin-top: 30px;
    text-align: center;
}

/* ================================
   联系我们页面
   ================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
}

.contact-form-container {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-container h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.form-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #c8161d;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c8161d;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-group {
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin-right: 8px;
}

.checkbox-label a {
    color: #c8161d;
}

.form-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 14px;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
}

/* 联系信息卡片 */
.contact-info-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.contact-info-card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 24px;
    margin-right: 15px;
}

.info-content strong {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.info-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 3px;
}

.info-note {
    font-size: 12px;
    color: #999;
}

.contact-tips {
    background: #f5f7fa;
    padding: 25px;
    border-radius: 8px;
}

.contact-tips h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.contact-tips ul li {
    font-size: 14px;
    color: #666;
    line-height: 2;
    padding-left: 15px;
    position: relative;
}

.contact-tips ul li::before {
    content: '•';
    color: #c8161d;
    position: absolute;
    left: 0;
}

/* 承诺卡片 */
.promise-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.promise-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.promise-card .promise-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.promise-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.promise-card p {
    font-size: 14px;
    color: #666;
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* ================================
   响应式设计
   ================================ */
@media (max-width: 1024px) {
    .services-grid,
    .advantages-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid,
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .promise-grid,
    .promise-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav {
        width: 100%;
        margin-top: 15px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .header-contact {
        display: none;
    }
    
    .banner {
        height: 400px;
        margin-top: 120px;
    }
    
    .banner-content h2 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .services-grid,
    .advantages-grid,
    .team-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .service-content,
    .news-container,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .news-main .news-item {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .promise-grid,
    .promise-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner {
        height: 350px;
    }
    
    .banner-content h2 {
        font-size: 26px;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}
