/* ==========================================
   1. 基礎重設與極簡白系背景
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Noto Sans CJK TC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

html, body {
    height: 100%;
    overflow: hidden; /* 死鎖自帶滾動條，確保名片完美垂直置中不溢出 */
}

body {
    /* 🌟 沿用白系明亮風格，載入您的背景圖 */
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 全螢幕滿版外框 */
.card-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ==========================================
   2. 高透光磨砂玻璃電子名片核心
   ========================================== */
.profile-card {
    background: rgba(255, 255, 255, 0.75); /* 明亮高透光基底 */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    padding: 45px 35px;
    width: 100%;
    max-width: 430px; /* 手機電子名片的經典黃金寬度 */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255,255,255,0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- 上方個人資訊 --- */
.profile-header {
    margin-bottom: 30px;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.profile-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #111111;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 11px;
    color: #006688; /* 經典深海藍點綴 */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.bio {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    padding: 0 10px;
}

/* --- 中間按鈕區塊 --- */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 14px; /* 按鈕與按鈕之間的黃金呼吸間距 */
    margin-bottom: 20px;
}

/* 通用名片按鈕 */
.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #333333;
    text-decoration: none;
    border-radius: 50px; /* 膠囊狀圓角，現代感十足 */
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.link-btn .icon {
    position: absolute;
    left: 24px; /* 將圖標優雅固定在左側 */
    font-size: 18px;
}

.link-btn:hover {
    transform: translateY(-2px);
    background: #ffffff;
    border-color: rgba(0, 102, 136, 0.3);
    box-shadow: 0 10px 20px rgba(0, 102, 136, 0.05);
    color: #006688;
}

/* 🌟 熱銷推薦/高亮按鈕（帶有深海藍主調） */
.link-btn.highlight {
    background: #006688;
    border-color: #006688;
    color: #ffffff;
}

.link-btn.highlight:hover {
    background: #004455;
    border-color: #004455;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 102, 136, 0.15);
}

/* --- 下方腳部 --- */
.card-footer {
    font-size: 11px;
    color: #999999;
    letter-spacing: 0.5px;
    margin-top: 10px;
}
