﻿/* =========================================================
       🟧 Dycco 官方網站共用樣式整合版
       區塊：News Cards + Flip Cards (Global Locations)
       ---------------------------------------------------------
       設計風格：橙色科技風 (#ff6a00 / #00ffcc)
       作者：Ryusuke Shen
       ========================================================= */
/* === 🔶 News 卡片樣式 === */
.news-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 0.6em 1.2em;
    margin-bottom: 8px;
    box-shadow: 0 1px 6px rgba(255, 123, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    background: linear-gradient(90deg, #ff7b00, #ff9b00);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 123, 0, 0.3);
    transform: translateY(-1px);
}

/* 日期 */
.news-date {
    min-width: 90px;
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
    margin-right: 8px;
}

/* 標題 */
.news-title {
    flex: 1;
    display: flex;
    align-items: center;
    color: #222;
    font-weight: 600;
    letter-spacing: 0.3px;
    gap: 8px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.news-card:hover .news-title {
    color: #fff;
}

/* 群組標籤 */
.badge-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5em;
    background: linear-gradient(90deg, #ffb347, #ffcc33);
    color: #222;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.35em 0;
    font-size: 0.85rem;
    box-shadow: 0 0 8px rgba(255, 200, 100, 0.4);
    transition: all 0.3s ease;
}

.news-card:hover .badge-orange {
    background: #fff;
    color: #ff7b00;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* 箭頭 */
.news-more {
    color: #222;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.news-card:hover .news-more {
    color: #fff;
    transform: translateX(3px);
}

/* 檢視更多按鈕 */
.btn-viewmore {
    background: #ff7b00;
    border: none;
    color: #fff;
    padding: 0.6em 1.4em;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .btn-viewmore:hover {
        background: #e66e00;
        transform: translateY(-2px);
    }

/* === 📱 響應式微調 (News Cards) === */
@media (max-width: 768px) {
    .news-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 0.8em 1em;
    }

    .news-date {
        margin-right: 0;
    }

    .badge-orange {
        width: auto;
        font-size: 0.8rem;
    }

    .news-more {
        position: absolute;
        right: 1.2em;
        bottom: 0.8em;
    }
}

/* === Dycco 主色 === */
.text-orange {
    color: #ff6a00;
}

/* =========================================================
       🟩 Global Locations 翻轉卡片樣式
       ========================================================= */
.flip-card {
    perspective: 1000px;
    height: 240px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 16px;
}

.flip-card:hover .flip-inner,
.flip-card.flipped .flip-inner {
    transform: rotateY(180deg);
}

/* 正面 */
.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    backface-visibility: hidden;
}

    .flip-front img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.flip-card:hover .flip-front img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

/* 背面 */
.flip-back {
    background: linear-gradient(135deg, #ff6a00, #ff8c33);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotateY(180deg);
    box-shadow: 0 0 12px rgba(255, 106, 0, 0.5);
    text-align: center;
    padding: 1.2rem;
}

    .flip-back h3 {
        font-size: 1.2rem;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 0.5rem;
    }

    .flip-back .address {
        font-size: 0.9rem;
        line-height: 1.4;
        opacity: 0.95;
        margin-bottom: 0.7rem;
    }

    .flip-back .contact {
        font-size: 0.85rem;
        line-height: 1.4;
        opacity: 0.85;
    }

        .flip-back .contact a {
            color: #fff;
            text-decoration: none;
            border-bottom: 1px dotted rgba(255,255,255,0.6);
            transition: 0.3s;
        }

            .flip-back .contact a:hover {
                color: #00ffcc;
                border-color: #00ffcc;
            }

/* === 📱 響應式微調 (Flip Cards) === */
@media (max-width: 576px) {
    .flip-back h3 {
        font-size: 1rem;
    }

    .flip-back .address {
        font-size: 0.85rem;
    }

    .flip-back .contact {
        font-size: 0.8rem;
    }
}

/* 在手機上，字體建議稍微縮小避免擠壓 */
@media (max-width: 576px) {
    .flip-back h3 {
        font-size: 1rem;
    }

    .flip-back .address {
        font-size: 0.85rem;
    }

    .flip-back .contact {
        font-size: 0.8rem;
    }
}