/* ============================================================
   首頁專屬樣式（Hero + 右側卡片列表）
   ============================================================ */

/* ===== Hero ===== */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 2;
    position: relative;
    padding-bottom: 0.8rem;
    min-height: 0;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 1.5rem;
    padding-right: 0.5rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(43, 122, 255, 0.06);
    padding: 0.25rem 1rem;
    border-radius: 60px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #2b7aff;
    border: 1px solid rgba(43, 122, 255, 0.1);
    margin-bottom: 0.6rem;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #07203a;
    margin-bottom: 0.5rem;
}
.hero h1 .highlight {
    color: #2b7aff;
    position: relative;
}
.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(43, 122, 255, 0.12);
    border-radius: 8px;
    z-index: -1;
}
.hero h1 i {
    color: #2b7aff;
    font-size: 2.2rem;
    vertical-align: middle;
}
.hero-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #1a3b5a;
    max-width: 90%;
    margin-bottom: 1.2rem;
}
.hero-description .tech-tag {
    display: inline-block;
    background: rgba(43, 122, 255, 0.07);
    padding: 0.1rem 0.7rem;
    border-radius: 40px;
    font-weight: 700;
    color: #1a6aff;
    font-size: 0.75rem;
    border: 1px solid rgba(43, 122, 255, 0.06);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    justify-content: center;
}
.btn-primary {
    background: #2b7aff;
    padding: 0.6rem 2rem;
    border-radius: 80px;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 10px 32px rgba(43, 122, 255, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: 0.2s;
}
.btn-primary:hover {
    background: #1a6aff;
    transform: translateY(-3px);
}
.btn-outline {
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(26, 43, 74, 0.12);
    padding: 0.6rem 1.8rem;
    border-radius: 80px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #0b2a4a;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: 0.2s;
}
.btn-outline i { color: #2b7aff; }
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: #2b7aff;
}

/* ===== 右側卡片列表 ===== */
.hero-visual {
    flex: 1;
    max-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 1.5rem;
    min-width: 0;
}
.card-list {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    overflow-y: auto;
    padding-right: 4px;
}
.card-list::-webkit-scrollbar { width: 4px; }
.card-list::-webkit-scrollbar-thumb {
    background: rgba(43, 122, 255, 0.25);
    border-radius: 8px;
}
.step-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 0.5rem 1rem;
    transition: 0.2s;
    flex-shrink: 0;
}
.step-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateX(4px);
}
.step-card .step-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: rgba(43, 122, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #2b7aff;
}
.step-card .step-info { flex: 1; min-width: 0; }
.step-card .step-info h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0b2a4a;
    line-height: 1.2;
}
.step-card .step-info p {
    font-size: 0.7rem;
    color: #4a6a8a;
    line-height: 1.3;
}
.step-card .step-num {
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(43, 122, 255, 0.25);
    flex-shrink: 0;
}

/* ===== 手機版 ===== */
@media screen and (max-width: 850px) {
    .hero { flex-direction: column; gap: 30px; padding: 50px 0 0.3rem 0; justify-content: flex-start; flex: 1; }
    .hero-text { flex: none; max-width: 100%; text-align: center; padding: 0; align-items: center; }
    .hero-badge { font-size: 0.5rem; padding: 0.1rem 0.6rem; margin-bottom: 0.2rem; justify-content: center; }
    .hero h1 { font-size: 1.6rem; }
    .hero h1 i { font-size: 1.3rem; }
    .hero h1 .highlight::after { height: 4px; bottom: 2px; }
    .hero-description { font-size: 0.7rem; max-width: 100%; margin-bottom: 0.5rem; }
    .hero-description .tech-tag { font-size: 0.6rem; padding: 0.05rem 0.4rem; }
    .btn-primary { padding: 0.35rem 1rem; font-size: 0.7rem; }
    .btn-outline { padding: 0.35rem 0.9rem; font-size: 0.65rem; }
    .hero-actions { justify-content: center; gap: 0.3rem 0.6rem; }

    .hero-visual { flex: none; max-height: none; width: 100%; justify-content: center; padding: 0; align-items: center; }
    .card-list { max-width: 100%; gap: 0.3rem; max-height: 380px; }
    .step-card { padding: 0.35rem 0.7rem; gap: 0.5rem; border-radius: 10px; }
    .step-card .step-icon { width: 30px; height: 30px; min-width: 30px; font-size: 0.9rem; }
    .step-card .step-info h4 { font-size: 0.7rem; }
    .step-card .step-info p { font-size: 0.55rem; }
    .step-card .step-num { font-size: 0.5rem; }
}

@media screen and (max-width: 480px) {
    .hero h1 { font-size: 1.2rem; }
    .hero h1 i { font-size: 1rem; }
    .hero-description { font-size: 0.6rem; }
    .hero-description .tech-tag { font-size: 0.5rem; padding: 0.05rem 0.3rem; }
    .btn-primary { font-size: 0.6rem; padding: 0.25rem 0.8rem; }
    .btn-outline { font-size: 0.55rem; padding: 0.25rem 0.6rem; }
    .step-card { padding: 0.5rem 0.7rem; gap: 0.6rem; border-radius: 8px; }
    .step-card .step-icon { width: 26px; height: 26px; min-width: 26px; font-size: 0.75rem; }
    .step-card .step-info h4 { font-size: 0.6rem; }
    .step-card .step-info p { font-size: 0.5rem; }
    .step-card .step-num { font-size: 0.4rem; }
}
