/* =====================================================================
   MyLink 名片：新、舊主題共用的小功能
   - 重點連結效果：.link-one.fx-big / fx-shake / fx-pulse / fx-shine
   - 自訂社群圖示：img.ml-cicon
   只會作用在有設定這些功能的名片上，沒設定的名片外觀不變
   ===================================================================== */

/* ---------- 自訂社群圖示 ---------- */
.profile-icons img.ml-cicon {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    object-fit: cover;
    border-radius: 22%;
    vertical-align: -.22em;
}

/* ---------- 重點連結 ---------- */
.link-list .link-one.fx { position: relative; z-index: 1; }

/* 放大：按鈕加大、字變粗，並加一圈強調光暈 */
.link-list .link-one.fx-big { transform: scale(1.04); margin-top: .35rem; margin-bottom: .55rem; }
.link-list .link-one.fx-big > a { box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .5); }
.link-list .link-one.fx-big .card-txt h2 { font-weight: 800; }

/* 晃動：每 3 秒輕輕搖一下 */
@keyframes mlFxShake {
    0%, 14%, 100% { transform: rotate(0); }
    2% { transform: rotate(-2.6deg); }
    4% { transform: rotate(2.6deg); }
    6% { transform: rotate(-2deg); }
    8% { transform: rotate(2deg); }
    10% { transform: rotate(-1deg); }
    12% { transform: rotate(1deg); }
}
.link-list .link-one.fx-shake { animation: mlFxShake 3s ease-in-out .8s infinite; }

/* 呼吸：慢慢放大縮小 */
@keyframes mlFxPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.035); }
}
.link-list .link-one.fx-pulse { animation: mlFxPulse 1.8s ease-in-out infinite; }

/* 閃光：一道光掃過按鈕 */
@keyframes mlFxShine {
    0% { left: -60%; }
    40%, 100% { left: 130%; }
}
.link-list .link-one.fx-shine > a { position: relative; overflow: hidden; }
.link-list .link-one.fx-shine .fx-shine-bar {
    position: absolute;
    top: -20%;
    left: -60%;
    z-index: 2;
    width: 40%;
    height: 140%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
    transform: skewX(-20deg);
    animation: mlFxShine 3.2s ease-in-out 1s infinite;
}

@media (prefers-reduced-motion: reduce) {
    .link-list .link-one.fx-shake,
    .link-list .link-one.fx-pulse,
    .link-list .link-one.fx-shine .fx-shine-bar { animation: none; }
}

/* =====================================================================
   新區塊（音樂、IG/TikTok、倒數、問答、分隔標題、聯絡表單、贊助）
   顏色跟著名片文字色（currentColor），新、舊主題都能用；新樣式在 appearance.css 另有微調
   ===================================================================== */
#mylink_html > .ml-block { width: 100%; margin: 1.25rem 0; }
.ml-block .card-title { text-align: center; }

/* 分隔標題 */
.ml-heading { text-align: center; padding: .25rem 0; }
.ml-heading h2 { margin: 0; font-size: 1.1rem; font-weight: 800; line-height: 1.4; color: inherit; }
.ml-heading p { margin: .25rem 0 0; font-size: .88rem; opacity: .7; }
.ml-heading-line h2 { display: flex; align-items: center; gap: .75rem; }
.ml-heading-line h2::before, .ml-heading-line h2::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .25; }
.ml-heading-big h2 { font-size: 1.55rem; letter-spacing: .02em; }

/* 嵌入播放器 / 貼文 */
.ml-embed iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
.ml-social iframe { margin: 0 auto; background: #fff; }
.ml-social-ig iframe { max-width: 480px; height: 640px; }
.ml-social-tiktok iframe { max-width: 340px; height: auto; aspect-ratio: 9 / 16; background: #000; }

/* 倒數計時 */
.ml-countdown { text-align: center; padding: 1rem; border-radius: 16px; background: rgba(127, 127, 127, .12); }
.ml-cd-units { display: flex; justify-content: center; gap: .5rem; font-size: 1.1rem; font-weight: 800; }
.ml-cd-units span { min-width: 3.6rem; padding: .5rem .25rem; border-radius: 12px; background: rgba(127, 127, 127, .14); }
.ml-cd-units b { display: block; font-size: 1.75rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ml-cd-units i { font-style: normal; font-size: .75rem; font-weight: 500; opacity: .7; }
.ml-cd-date { margin: .5rem 0 0; font-size: .8rem; opacity: .65; }
.ml-countdown.done .ml-cd-units { padding: .5rem 0; font-size: 1.3rem; }

/* 常見問答 */
.ml-faq details { margin-bottom: .5rem; border-radius: 12px; background: rgba(127, 127, 127, .1); overflow: hidden; }
.ml-faq summary { position: relative; padding: .85rem 2.5rem .85rem 1rem; font-weight: 700; cursor: pointer; list-style: none; }
.ml-faq summary::-webkit-details-marker { display: none; }
.ml-faq summary::after { content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.2rem; font-weight: 400; opacity: .6; }
.ml-faq details[open] summary::after { content: "−"; }
.ml-faq-a { padding: 0 1rem .9rem; font-size: .92rem; line-height: 1.7; opacity: .88; }

/* 聯絡表單 */
.ml-contact { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border-radius: 16px; background: rgba(127, 127, 127, .1); }
.ml-contact-note { margin: 0 0 .25rem; font-size: .9rem; opacity: .8; text-align: center; }
.ml-contact input, .ml-contact textarea {
    width: 100%; padding: .65rem .8rem; border: 1px solid rgba(127, 127, 127, .35); border-radius: 12px;
    background: rgba(255, 255, 255, .9); color: #222; font: inherit; font-size: .95rem;
}
.ml-contact textarea { resize: vertical; min-height: 6rem; }
.ml-contact button { padding: .7rem 1rem; border: 1px solid currentColor; border-radius: 999px; background: rgba(127, 127, 127, .22); color: inherit; font-weight: 700; cursor: pointer; }
.ml-contact button:disabled { opacity: .6; cursor: default; }
.ml-contact .ml-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ml-contact-msg { margin: 0; min-height: 1.2em; font-size: .88rem; text-align: center; }
.ml-contact.sent input, .ml-contact.sent textarea, .ml-contact.sent button { display: none; }

/* 贊助 */
.ml-donate { text-align: center; }
.ml-donate-note { margin: 0 0 .75rem; font-size: .92rem; opacity: .85; }
.ml-donate-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.ml-donate-list a {
    display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.1rem; border-radius: 999px;
    background: rgba(127, 127, 127, .14); color: inherit; font-weight: 700; text-decoration: none;
    transition: transform .18s ease;
}
.ml-donate-list a:hover { transform: translateY(-2px); }
.ml-donate-bank { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .75rem; padding: .75rem 1rem; border-radius: 12px; background: rgba(127, 127, 127, .1); text-align: left; font-size: .9rem; }
.ml-donate-bank button { flex: none; padding: .35rem .8rem; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font-size: .8rem; cursor: pointer; }

/* ---------- 檢舉名片 ---------- */
.ml-report { color: #222; text-align: left; }
.ml-report .modal-title { font-size: 1.05rem; font-weight: 700; }
.ml-report-hint { font-size: .85rem; color: #666; margin: 0 0 .75rem; }
.ml-report-opt { display: flex; align-items: center; gap: .5rem; padding: .45rem .25rem; font-size: .95rem; cursor: pointer; }
.ml-report textarea { width: 100%; margin-top: .5rem; padding: .6rem .75rem; border: 1px solid #d9dce5; border-radius: 10px; font: inherit; font-size: .9rem; }
.ml-report .ml-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ml-report-msg { margin: .5rem 0 0; min-height: 1.2em; font-size: .88rem; color: #c0392b; }
.ml-report-link { font-size: .8rem; color: #888; }
