/* ========================================
   拓冰建站 - 内页通用样式
   ======================================== */

/* 页面标题区 */
.page-header {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, #f5f0e8 0%, #d4c9b8 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg-pattern.png') repeat;
    opacity: 0.05;
}

.page-title {
    font-size: 48px;
    color: var(--color-ink-black);
    margin-bottom: 20px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 60px;
    }
    
    .page-title {
        font-size: 36px;
    }
}

/* 内容区块 */
.content-section {
    padding: 80px 0;
}

.content-section.alt-bg {
    background: var(--color-soft-white);
}

/* 侧边栏布局 */
.main-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    padding: 60px 0;
}

@media (max-width: 992px) {
    .main-sidebar {
        grid-template-columns: 1fr;
    }
}

/* 筛选器 */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--color-warm-gray);
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--color-warm-gray);
    background: transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-dark-brown);
    border-color: var(--color-dark-brown);
    color: var(--color-cream);
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid var(--color-warm-gray);
    background: var(--color-cream);
    color: var(--color-ink-black);
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

/* 产品/服务卡片增强 */
.service-card {
    background: var(--color-soft-white);
    border: 1px solid var(--color-warm-gray);
    transition: all 0.4s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(43, 43, 43, 0.12);
    border-color: var(--color-light-brown);
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-img {
    transform: scale(1.08);
}

.service-card-body {
    padding: 25px;
}

.service-card-title {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--color-ink-black);
}

.service-card-title a:hover {
    color: var(--color-dark-brown);
}

.service-card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--color-warm-gray);
}

.service-card-price {
    font-size: 20px;
    color: var(--color-dark-brown);
    font-weight: 700;
}

.service-card-link {
    font-size: 14px;
    color: var(--color-dark-brown);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-card-link:hover {
    gap: 10px;
}

/* 团队卡片 */
.team-card {
    text-align: center;
    background: var(--color-soft-white);
    border: 1px solid var(--color-warm-gray);
    padding: 40px 30px;
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(43, 43, 43, 0.12);
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 25px;
    border: 4px solid var(--color-warm-gray);
    transition: border-color 0.4s ease;
}

.team-card:hover .team-avatar {
    border-color: var(--color-light-brown);
}

.team-name {
    font-size: 20px;
    color: var(--color-ink-black);
    margin-bottom: 8px;
}

.team-role {
    font-size: 14px;
    color: var(--color-dark-brown);
    margin-bottom: 15px;
}

.team-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* FAQ 样式 */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-soft-white);
    border: 1px solid var(--color-warm-gray);
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-light-brown);
}

.faq-question {
    padding: 25px 30px;
    font-size: 18px;
    color: var(--color-ink-black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--color-dark-brown);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 25px;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* 联系表单 */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--color-ink-black);
    font-weight: 600;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--color-warm-gray);
    background: var(--color-cream);
    color: var(--color-ink-black);
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-dark-brown);
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* 地图容器 */
.map-container {
    width: 100%;
    height: 450px;
    background: var(--color-warm-gray);
    margin-top: 60px;
    border-radius: 8px;
    overflow: hidden;
}

/* 联系信息卡片 */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-card {
    background: var(--color-soft-white);
    border: 1px solid var(--color-warm-gray);
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(43, 43, 43, 0.1);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--color-light-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-cream);
}

.contact-info-title {
    font-size: 18px;
    color: var(--color-ink-black);
    margin-bottom: 10px;
}

.contact-info-text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* 时间线 */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-light-brown), var(--color-dark-brown));
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--color-dark-brown);
    border-radius: 50%;
    border: 4px solid var(--color-cream);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--color-soft-white);
    border: 1px solid var(--color-warm-gray);
    padding: 25px;
    border-radius: 8px;
}

.timeline-year {
    font-size: 24px;
    color: var(--color-dark-brown);
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-item:nth-child(odd) .timeline-year {
    text-align: right;
}

.timeline-title {
    font-size: 18px;
    color: var(--color-ink-black);
    margin-bottom: 10px;
}

.timeline-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-year {
        text-align: left;
    }
}
