﻿/* 发展定位页面样式 - 紧凑卡片布局 */
.position-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.position-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e8e8e8;
}

.position-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e88e5, #42a5f5);
    z-index: 1;
}

/* 每个卡片不同的渐变色 */
.position-card:nth-child(1)::before {
    background: linear-gradient(90deg, #1e88e5, #42a5f5);
}

.position-card:nth-child(2)::before {
    background: linear-gradient(90deg, #43a047, #66bb6a);
}

.position-card:nth-child(3)::before {
    background: linear-gradient(90deg, #e53935, #ef5350);
}

.position-card:nth-child(4)::before {
    background: linear-gradient(90deg, #fb8c00, #ffa726);
}

.position-card:nth-child(5)::before {
    background: linear-gradient(90deg, #8e24aa, #ab47bc);
}

.position-card:nth-child(6)::before {
    background: linear-gradient(90deg, #00acc1, #26c6da);
}

.position-card:nth-child(7)::before {
    background: linear-gradient(90deg, #f4511e, #ff7043);
}

.position-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.position-image {
    width: 100%;
    height: 0;
    padding-bottom: 60%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.position-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.position-card:hover .position-image img {
    transform: translate(-50%, -50%) scale(1.05);
}

/* 卡片序号 */
.position-card::after {
    content: attr(data-number);
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #1e88e5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
    border: 3px solid #1e88e5;
}

.position-card:nth-child(1)::after {
    color: #1e88e5;
    border-color: #1e88e5;
}

.position-card:nth-child(2)::after {
    color: #43a047;
    border-color: #43a047;
}

.position-card:nth-child(3)::after {
    color: #e53935;
    border-color: #e53935;
}

.position-card:nth-child(4)::after {
    color: #fb8c00;
    border-color: #fb8c00;
}

.position-card:nth-child(5)::after {
    color: #8e24aa;
    border-color: #8e24aa;
}

.position-card:nth-child(6)::after {
    color: #00acc1;
    border-color: #00acc1;
}

.position-card:nth-child(7)::after {
    color: #f4511e;
    border-color: #f4511e;
}

.position-card:hover::after {
    transform: scale(1.08);
}

.position-text {
    padding: 18px;
}

.position-title {
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    position: relative;
    padding-left: 12px;
    line-height: 1.4;
}

.position-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #1e88e5, #42a5f5);
    border-radius: 2px;
}

.position-card:nth-child(2) .position-title::before {
    background: linear-gradient(180deg, #43a047, #66bb6a);
}

.position-card:nth-child(3) .position-title::before {
    background: linear-gradient(180deg, #e53935, #ef5350);
}

.position-card:nth-child(4) .position-title::before {
    background: linear-gradient(180deg, #fb8c00, #ffa726);
}

.position-card:nth-child(5) .position-title::before {
    background: linear-gradient(180deg, #8e24aa, #ab47bc);
}

.position-card:nth-child(6) .position-title::before {
    background: linear-gradient(180deg, #00acc1, #26c6da);
}

.position-card:nth-child(7) .position-title::before {
    background: linear-gradient(180deg, #f4511e, #ff7043);
}

.position-desc {
    font-size: 17px;
    line-height: 1.8;
    color: #5a6c7d;
    margin-bottom: 0;
    text-align: justify;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .position-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .position-card::before {
        height: 2px;
    }
    
    .position-card::after {
        top: 8px;
        right: 8px;
        width: 35px;
        height: 35px;
        font-size: 16px;
        border-width: 2px;
    }
    
    .position-image {
        padding-bottom: 55%;
    }
    
    .position-text {
        padding: 14px;
    }
    
    .position-title {
        font-size: 15px;
        padding-left: 8px;
        margin-bottom: 8px;
    }
    
    .position-title::before {
        width: 2px;
        height: 16px;
    }

    .position-desc {
        font-size: 16px;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .position-grid {
        gap: 12px;
    }
    
    .position-card {
        border-radius: 6px;
    }
    
    .position-card::after {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .position-image {
        padding-bottom: 55%;
    }
    
    .position-text {
        padding: 12px;
    }
    
    .position-title {
        font-size: 17px;
    }
    
    .position-desc {
        font-size: 16px;
    }
}

/* 平板横屏优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .position-grid {
        gap: 16px;
    }
    
    .position-card::after {
        top: 10px;
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
    
    .position-image {
        padding-bottom: 58%;
    }
    
    .position-text {
        padding: 15px;
    }
    
    .position-title {
        font-size: 17px;
    }
    
    .position-desc {
        font-size: 16px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1400px) {
    .position-grid {
        gap: 20px;
    }
    
    .position-card::before {
        height: 4px;
    }
    
    .position-card::after {
        top: 12px;
        right: 12px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .position-image {
        padding-bottom: 58%;
    }
    
    .position-text {
        padding: 18px;
    }
    
    .position-title {
        font-size: 17px;
    }
    
    .position-desc {
        font-size: 15px;
    }
}
