/* ========================================
   理念模块 - 全新优化布局
   ======================================== */

/* 主要卡片網格 */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    margin: 50px 0;
    position: relative;
    z-index: 1;
}

.philosophy-main-card {
    background: var(--white-color);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    transition: all 0.4s ease;
}

.philosophy-main-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.2);
}

.philosophy-card-bg {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.philosophy-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.philosophy-main-card:hover .philosophy-card-bg img {
    transform: scale(1.15);
}

.philosophy-card-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(255,255,255,1), transparent);
}

.philosophy-card-content {
    padding: 35px 30px;
    text-align: center;
}

.philosophy-card-content .philosophy-icon {
    font-size: 55px;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.philosophy-card-content h3 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.philosophy-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    border-radius: 2px;
}

.philosophy-card-content p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 25px;
}

.philosophy-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.philosophy-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--dark-color);
    padding: 8px 15px;
    background: #fff5f0;
    border-radius: 20px;
    transition: all 0.3s;
}

.philosophy-features span i {
    color: var(--primary-color);
}

.philosophy-features span:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.philosophy-features span:hover i {
    color: white;
}

/* 中間運算符 */
.philosophy-operator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.operator-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 10px 30px rgba(255,152,0,0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.operator-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

/* 象徵含義 */
.philosophy-meaning {
    margin: 60px 0;
    position: relative;
    z-index: 1;
}

.meaning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.meaning-item {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.meaning-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
}

.meaning-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.meaning-item h4 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.meaning-item p {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.7;
}

/* 願景區塊 */
.philosophy-vision {
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.vision-content {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 50px;
    align-items: center;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.vision-image {
    height: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

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

.vision-text {
    padding: 50px 50px 50px 0;
}

.vision-text h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.vision-text h4 {
    font-size: 32px;
    color: var(--dark-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.vision-text > p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 25px;
}

.vision-list {
    list-style: none;
    padding: 0;
}

.vision-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    line-height: 2.2;
    color: var(--dark-color);
}

.vision-list li i {
    color: var(--primary-color);
    font-size: 18px;
}

/* ========================================
   響應式設計 - 平板
   ======================================== */
@media (max-width: 968px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .philosophy-operator {
        flex-direction: row;
        padding: 20px 0;
    }
    
    .operator-circle {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    
    .operator-line {
        height: 2px;
        width: 100px;
        background: linear-gradient(to right, var(--primary-color), transparent);
    }
    
    .meaning-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vision-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .vision-image {
        min-height: 300px;
    }
    
    .vision-text {
        padding: 40px 30px;
    }
    
    .vision-text h4 {
        font-size: 26px;
    }
    
    .vision-text > p {
        font-size: 16px;
    }
}

/* ========================================
   響應式設計 - 手機
   ======================================== */
@media (max-width: 576px) {
    .philosophy-grid {
        gap: 30px;
    }
    
    .philosophy-card-bg {
        height: 180px;
    }
    
    .philosophy-card-content {
        padding: 25px 20px;
    }
    
    .philosophy-card-content .philosophy-icon {
        font-size: 45px;
        margin-bottom: 15px;
    }
    
    .philosophy-card-content h3 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .philosophy-divider {
        width: 50px;
        height: 3px;
        margin-bottom: 15px;
    }
    
    .philosophy-card-content p {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 20px;
    }
    
    .philosophy-features span {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .operator-circle {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .operator-line {
        width: 60px;
    }
    
    .philosophy-meaning {
        margin: 40px 0;
    }
    
    .meaning-item {
        padding: 25px 20px;
    }
    
    .meaning-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .meaning-item h4 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .meaning-item p {
        font-size: 14px;
    }
    
    .philosophy-vision {
        margin-top: 40px;
    }
    
    .vision-image {
        min-height: 250px;
    }
    
    .vision-text {
        padding: 30px 20px;
    }
    
    .vision-text h3 {
        font-size: 18px;
    }
    
    .vision-text h4 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .vision-text > p {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 20px;
    }
    
    .vision-list li {
        font-size: 14px;
        line-height: 2;
        gap: 10px;
    }
    
    .vision-list li i {
        font-size: 16px;
    }
}

/* 超小屏幕 */
@media (max-width: 375px) {
    .philosophy-card-bg {
        height: 160px;
    }
    
    .philosophy-card-content {
        padding: 20px 15px;
    }
    
    .philosophy-card-content h3 {
        font-size: 22px;
    }
    
    .meaning-item {
        padding: 20px 15px;
    }
    
    .vision-text {
        padding: 25px 15px;
    }
}


