﻿/* ------------------------------------------------------
   🌟 Dycco 橘色科技風全局設定
------------------------------------------------------ */
body {
    background: url('/img/Background/ArtBG.jpg') no-repeat center top fixed;
    background-size: cover;
    color: #333;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.80); /* 淡白遮罩 */
        backdrop-filter: blur(3px); /* 模糊底圖 */
        z-index: -1;
    }

/* 主要品牌橘 */
:root {
    --dycco-orange: #ff7b00;
}

/* 通用橘色樣式 */
.text-orange {
    color: var(--dycco-orange) !important;
}

.border-orange {
    border-color: var(--dycco-orange) !important;
}

/* ------------------------------------------------------
   📄 Article Page Layout
------------------------------------------------------ */
.article-page {
    margin-top: 7em;
    margin-bottom: 3em;
}

/* ------------------------------------------------------
   🧱 Article Header (基礎樣式)
------------------------------------------------------ */
.article-header {
    background: linear-gradient(to bottom right, #fff, #fffaf4);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.08);
    transition: all 0.3s ease;
}

    .article-header:hover {
        box-shadow: 0 4px 16px rgba(255, 165, 0, 0.2);
        transform: translateY(-2px);
    }

/* 標題（舊樣式，可留作備用） */
.article-title {
    color: var(--dycco-orange);
    text-shadow: 0 0 6px rgba(255, 136, 0, 0.4);
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* ------------------------------------------------------
   ⚡ Dycco 橘色科技風標題區（主用）
------------------------------------------------------ */
.article-header-dycco {
    background: linear-gradient(to right, #fffaf4, #ffffff);
    border-left: 6px solid var(--dycco-orange);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 6px 16px rgba(255, 136, 0, 0.08);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

    .article-header-dycco:hover {
        box-shadow: 0 8px 22px rgba(255, 136, 0, 0.2);
        transform: translateY(-2px);
    }

/* 標題包裝與橘條 */
.article-title-wrap {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.article-title-bar {
    width: 6px;
    height: 36px;
    background-color: var(--dycco-orange);
    border-radius: 3px;
    margin-right: 10px;
    box-shadow: 0 0 12px rgba(255, 136, 0, 0.6);
}

/* 標題 + 動態底線動畫 */
.article-title-glow {
    position: relative;
    font-size: 1.9rem;
    font-weight: 800;
    color: #2a2a2a;
    letter-spacing: 0.5px;
    padding-bottom: 6px;
}

    .article-title-glow::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 3px;
        width: 100%;
        background: linear-gradient(90deg, transparent, var(--dycco-orange), transparent);
        background-size: 200% 100%;
        animation: glowLine 2.5s linear infinite;
        border-radius: 2px;
    }

@keyframes glowLine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ------------------------------------------------------
   🧾 Meta Info
------------------------------------------------------ */
.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-left: 0.6rem;
}

    .article-meta span {
        margin-right: 1rem;
    }

    .article-meta i {
        vertical-align: middle;
        color: var(--dycco-orange);
    }

/* ------------------------------------------------------
   📜 Article Content
------------------------------------------------------ */
.article-content {
    background: #fff;
    border-radius: 0 0 16px 16px;
    padding: 2em;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

/* ------------------------------------------------------
   🔖 Footer / Tags / Share
------------------------------------------------------ */
.article-footer {
    margin-top: 2rem;
    border-top: 2px solid #f0f0f0;
    padding-top: 1rem;
}

/* 關鍵字標籤 */
.tag-badge {
    display: inline-block;
    background: rgba(255, 165, 0, 0.12);
    border: 1px solid var(--dycco-orange);
    color: var(--dycco-orange);
    border-radius: 20px;
    padding: 4px 10px;
    margin: 3px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

    .tag-badge:hover {
        background: var(--dycco-orange);
        color: #fff;
        box-shadow: 0 0 8px rgba(255, 165, 0, 0.6);
        transform: translateY(-1px);
    }

/* 分享連結 */
.article-share a {
    display: inline-block;
    margin-right: 0.8rem;
    color: #555;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .article-share a:hover {
        color: var(--dycco-orange);
        transform: translateY(-1px);
    }

.article-share i {
    font-size: 1.3rem;
    vertical-align: middle;
}

/* ------------------------------------------------------
   📱 RWD 調整
------------------------------------------------------ */
@media (max-width: 768px) {
    .article-title-glow {
        font-size: 1.5rem;
    }

    .article-content {
        padding: 1.5em;
    }
}
