html, body {
    height: 100%;
    margin: 0;
}


body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "PingFang SC", "Microsoft YaHei", "Helvetica Neue",
                 Arial, sans-serif;
    background: linear-gradient(120deg, #b4d9d9, #e8ace1);
    background-size: 400% 400%;
    animation: gradientBG 9s ease infinite;
    color: #333;
    text-align: center;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    margin-bottom: 40px;
    color: white;
}

h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

.subtitle {
    font-size: 1.5rem;
    color: #f3f3f3;
}

.player-card {
    background: white;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;

    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.08);
    box-sizing: border-box;
}

#track-title {
    font-size: 1.0rem;
    font-weight: bold;
    margin: 30px 0 12px 0;

    color: #363636;
}

audio {
    width: 90%;
    padding: auto;
    outline: none;
}

.playlist {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px;

}

.track {
    padding: 14px;
    border: 1px solid #ddd;
    background: #fafafa;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.2s ease;
     -webkit-text-fill-color: #333 !important; /* ⭐ iPhone 强制文本颜色 */
}

.track:hover {
    background: #ececec;
}

.track.active {
    background: linear-gradient(120deg, #40bbc6, #fa75db);
    background-size: 300% 300%;
    animation: gradientBtn 3s ease infinite;
    color: #fff;
     -webkit-text-fill-color: #f6f6f6 !important; /* ⭐ iPhone 强制文本颜色 */
}

.main {
  flex: 1;
}

footer {
    text-align: center;
    padding: 15px 0;
    background:transparent;
    color: #555;
    width: 100%;
    position: static;
    margin-top: auto;
}

.resume-btn {
    padding: 12px 20px;
    background: linear-gradient(120deg, #74b7d0, #3fa797);
    margin-bottom: 15px;
    margin-right: 10px;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.25s ease;
    box-shadow: 0 4px 14px rgba(114, 114, 114, 0.3);
}

.resume-btn:hover {
    background: linear-gradient(120deg, #3f798e, #1b5b51);
    transform: translateY(-2px);
}

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}




.resume-modal {
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    z-index: 999;
}


.resume-img-box {
    background: #fff;
    padding: 10px;
    max-width: 90%;
    max-height: 90%;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    animation: fadeIn 0.35s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

#resume-img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.45);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    transition: 0.2s ease;
}

.page-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.page-btn.left {
    left: 10px;
}

.page-btn.right {
    right: 10px;
}

.close-resume {
    position: absolute;
    text-align: center;
    top: 5%;
    cursor: pointer;

    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    color: white;

    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transition: 0.2s ease;
}

.close-resume:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

/* ===== 名片卡片 ===== */
.business-card {
    background: white;
    width: 100%;
    max-width: 420px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 15px;
    padding: 50px;
    border-radius: 18px;
    text-align: left;
    box-sizing: border-box;
}

.card-info {
    text-align: left;
    margin-top: 10px;
}

.card-avatar {
    width: 60px;
    height: 60px;

    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-name {
    font-size: 1.4rem;
    margin: 6px 0 4px 0;
    font-weight: 700;
}

.card-info p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: #444;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientBtn {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


@media (max-width: 480px) {
    body {
        padding: 16px 8px;
    }

    .player-card, .business-card {
        width: 100%;
        max-width: 420px;
    }
}