/* ========================================
   元基伍捌建站 - 内页通用样式
   ======================================== */

/* 服务列表页面 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 80px 0;
}

.service-card {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.service-content {
    padding: 30px;
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.service-text {
    font-size: 15px;
    color: #718096;
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.price span {
    font-size: 14px;
    color: #a0aec0;
    font-weight: 400;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* 案例展示页面 */
.cases-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: #f7fafc;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.case-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.case-content {
    padding: 25px;
}

.case-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
}

.case-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.case-client {
    font-size: 14px;
    color: #718096;
}

@media (max-width: 992px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* 资讯列表页面 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.news-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.news-item-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.news-item-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-item-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.news-item-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-item-excerpt {
    font-size: 15px;
    color: #718096;
    line-height: 1.8;
    margin-bottom: 20px;
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #a0aec0;
}

.news-item-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .news-item {
        grid-template-columns: 1fr;
    }

    .news-item-image {
        height: 240px;
    }
}

/* 新闻详情页面 */
.article-main {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.article-header {
    padding: 50px;
    border-bottom: 1px solid #e2e8f0;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 30px;
    font-size: 15px;
    color: #718096;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-body {
    padding: 50px;
    font-size: 17px;
    line-height: 2;
    color: #4a5568;
}

.article-body img {
    max-width: 100%;
    border-radius: 15px;
    margin: 30px 0;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 600;
    color: #2d3748;
    margin: 40px 0 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 12px;
}

/* 相关文章板块 */
.related-section {
    padding: 60px 50px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.related-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.related-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 13px;
    color: #a0aec0;
}

@media (max-width: 768px) {
    .article-header,
    .article-body,
    .related-section {
        padding: 30px;
    }

    .article-title {
        font-size: 28px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* 团队页面 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-content {
    padding: 25px;
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.team-position {
    font-size: 15px;
    color: #667eea;
    margin-bottom: 15px;
}

.team-desc {
    font-size: 14px;
    color: #718096;
    line-height: 1.8;
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* 联系页面 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 80px 0;
}

.contact-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px;
    border-radius: 25px;
    color: #ffffff;
}

.contact-info-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-info-text p {
    font-size: 15px;
    opacity: 0.9;
}

.contact-form-card {
    background: #ffffff;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #4a5568;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}
