/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
body {
  min-height: 100vh;
  padding: 20px;
  padding-top: 30px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition: all 0.5s ease;
  will-change: padding, background;
  background-repeat: no-repeat;
  background-size: cover; 
  background-position: center center; 
  background-attachment: fixed;
}
.container {
    max-width: 1200px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 30px var(--shadow-color);
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}
h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
}
.subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 20px;
}
.content {
    padding: 40px;
}
/* 主题变量 */
.theme-blue {
    --primary-color: #2575fc;
    --secondary-color: #6a11cb;
    --bg-color: #f8f9ff;
    --card-bg: white;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}
.theme-green {
    --primary-color: #1abc9c;
    --secondary-color: #16a085;
    --bg-color: #f0f9f7;
    --card-bg: white;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}
.theme-orange {
    --primary-color: #e67e22;
    --secondary-color: #d35400;
    --bg-color: #fef9f3;
    --card-bg: white;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}
.theme-purple {
    --primary-color: #9b59b6;
    --secondary-color: #8e44ad;
    --bg-color: #f8f5ff;
    --card-bg: white;
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}
.theme-custom-bg {
    --primary-color: #2575fc;
    --secondary-color: #6a11cb;
    --bg-color: rgba(248, 249, 255, 0.9);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #333;
    --shadow-color: rgba(0, 0, 0, 0.1);
}
/* 博客专属样式 */
/* 头像区域 */
.avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}
.avatar-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 15px;
}
.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* IP信息显示 */
.ip-info {
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    color: white;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}
.ip-address, .ip-location, .ip-isp {
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.ip-label, .location-label, .isp-label {
    font-weight: 600;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
    font-size: 11px;
    white-space: nowrap;
}
.ip-loading {
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
}
.ip-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.ip-error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 107, 107, 0.3);
}
/* 个人介绍 */
.intro-section {
    background: var(--bg-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 40px;
}
.section-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-color);
}
.intro-content {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 20px;
}
.intro-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #666;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.meta-icon {
    color: var(--primary-color);
    font-size: 18px;
}
/* 图片展示（相册） */
.gallery-section {
    margin-bottom: 40px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: transform 0.3s;
    cursor: pointer;
}
.gallery-item:hover {
    transform: translateY(-5px);
}
.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s;
}
.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}
.gallery-caption {
    padding: 15px;
    text-align: center;
    color: var(--text-color);
    font-weight: 500;
}
/* 个人爱好 */
.hobby-section {
    margin-bottom: 40px;
}
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.hobby-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: transform 0.3s;
}
.hobby-card:hover {
    transform: translateY(-5px);
}
.hobby-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.hobby-name {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
}
/* 友情链接 */
.link-section {
    margin-bottom: 40px;
}
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.link-card {
    background: var(--bg-color);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: all 0.3s;
    text-decoration: none;
}
.link-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}
.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
}
.link-card:hover .link-icon {
    background: white;
    color: var(--secondary-color);
}
.link-info {
    overflow: hidden;
}
.link-name {
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.link-desc {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.link-card:hover .link-desc {
    color: rgba(255,255,255,0.8);
}
/* 留言表单 */
.message-section {
    margin-bottom: 30px;
}
.message-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-label {
    font-weight: 600;
    color: var(--text-color);
}
.form-input, .form-textarea {
    padding: 12px 15px;
    border: 2px solid #e1e5ee;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: white;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
}
.form-textarea {
    min-height: 120px;
    resize: vertical;
}
.form-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 200px;
    margin: 0 auto;
    display: block;
}
.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(37, 117, 252, 0.4);
}
/* 留言限制样式 */
.message-limit-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}
.limit-message {
    color: #856404;
    font-weight: 600;
    margin-bottom: 8px;
}
.limit-time {
    color: #666;
    font-size: 14px;
}
/* 底部 */
.footer {
    background: var(--bg-color);
    padding: 25px;
    text-align: center;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}
.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}
.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
/* 图片模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}
.modal.active {
    display: flex;
}
.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: white;
    padding: 20px;
    text-align: center;
}
.modal-img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}
.modal-close {
    margin-top: 15px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}
.modal-close:hover {
    background: var(--secondary-color);
}
/* 验证码模态框 */
.captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}
.captcha-modal.active {
    display: flex;
}
.captcha-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}
.captcha-modal-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}
.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
.captcha-image {
    width: 100%;
    height: 80px;
    background-color: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e1e5ee;
    overflow: hidden;
    position: relative;
}
.captcha-controls {
    display: flex;
    gap: 10px;
}
.captcha-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    font-size: 16px;
}
.captcha-input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.captcha-refresh {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.captcha-refresh:hover {
    background: var(--secondary-color);
    transform: rotate(90deg);
}
.captcha-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.captcha-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}
.captcha-submit {
    background: var(--primary-color);
    color: white;
}
.captcha-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}
.captcha-cancel {
    background: #f0f0f0;
    color: #666;
}
.captcha-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}
/* 侧边菜单 */
.menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 101;
    transition: all 0.3s ease;
    padding: 0;
    overflow-y: auto;
}
.side-menu.active {
    left: 0;
}
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    display: none;
}
.menu-overlay.active {
    display: block;
}
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    position: sticky;
    top: 0;
    z-index: 1;
}
.menu-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}
.close-button {
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.close-button:hover {
    background: #eee;
    color: #333;
}
.menu-content {
    padding: 20px;
}
.menu-section {
    margin-bottom: 25px;
}
.menu-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu-section-title i {
    font-size: 18px;
}
/* 菜单内容折叠样式 */
.menu-section-title.collapsible {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}
.menu-section-title.collapsible::after {
    content: '▶';
    position: absolute;
    right: 0;
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #999;
}
.menu-section-title.collapsible.expanded::after {
    transform: rotate(90deg);
}
.menu-section-content {
    transition: all 0.3s ease;
    overflow: hidden;
    display: none;
}
.menu-section-content.active {
    display: block;
}
.dev-info {
    padding: 10px 12px;
    font-size: 13px;
    color: #555;
    background: #f9f9f9;
    border-radius: 8px;
    line-height: 1.5;
}
/* 导航菜单 */
.nav-menu {
    list-style: none;
}
.nav-item {
    margin-bottom: 8px;
}
.nav-link {
    display: block;
    padding: 12px 15px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-link:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}
.nav-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}
/* 主题选择 */
.theme-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.theme-option {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #eee;
    transition: all 0.2s;
}
.theme-option:hover {
    transform: scale(1.05);
}
.theme-option.active {
    border-color: #333;
}
.theme-blue {
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
}
.theme-green {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}
.theme-orange {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}
.theme-purple {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}
.theme-custom {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 12px;
}
/* 背景选择预览 */
.custom-bg-upload {
    margin-top: 10px;
    display: none;
}
.bg-choices {
    display: flex;
    gap: 10px;
    align-items: center;
}
.bg-choice {
    width: 80px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.15s;
}
.bg-choice img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bg-choice.active {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}
/* 个人信息（侧边栏） */
.profile-info {
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 20px;
}
.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}
.profile-desc {
    font-size: 14px;
    color: #666;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}
.contact-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.contact-text {
    font-size: 14px;
    color: #555;
}
.contact-text a {
    color: inherit;
    text-decoration: none;
}
/* 名言设置选项样式 */
.quote-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quote-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 0;
}
.quote-option input[type="radio"] {
    margin: 0;
}
/* 音乐播放器样式 */
.music-player {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.music-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.music-item {
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}
.music-item:hover {
    background: #e9e9e9;
    transform: translateX(2px);
}
.music-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
/* 名言/鸡汤悬浮窗样式 */
.quote-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    padding: 15px;
    max-width: 300px;
    z-index: 99;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}
.quote-content {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
    margin-right: 25px;
}
.quote-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quote-close:hover {
    background: #f0f0f0;
    color: #333;
}
/* 响应式适配 */
@media (max-width: 600px) {
    .content {
        padding: 20px;
    }
    header {
        padding: 30px 20px;
    }
    h1 {
        font-size: 28px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .hobby-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .link-grid {
        grid-template-columns: 1fr;
    }
    .form-btn {
        width: 100%;
        margin: 0;
    }
    .side-menu {
        width: 280px;
    }
    .captcha-controls {
        flex-direction: column;
    }
    .captcha-refresh {
        width: 100%;
        height: 45px;
    }
    .captcha-buttons {
        flex-direction: column;
    }
    
    .quote-window {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .ip-info {
        font-size: 12px;
        padding: 8px 12px;
        max-width: 280px;
    }
    
    .music-item {
        padding: 6px 10px;
        font-size: 13px;
    }
}


/* --- DYNAMIC ISLAND / SPLASH ADDITIONS --- */

/* 开屏 Splash */
.splash-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,25,0.98) 0%, rgba(37,37,60,0.95) 100%);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity, transform;
    transition: opacity 450ms ease;
}
.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}
.splash-inner {
    text-align: center;
    color: #fff;
}
.splash-avatar-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 14px auto;
    transform: scale(0.9);
    animation: splashAvatarScale 900ms cubic-bezier(.2,.9,.2,1) forwards;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    border: 3px solid rgba(255,255,255,0.08);
}
.splash-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.splash-text {
    font-size: 16px;
    opacity: 0.95;
    margin-top: 6px;
}
@keyframes splashAvatarScale {
    0% { transform: scale(0.6); filter: blur(2px); opacity: 0; }
    60% { transform: scale(1.06); filter: blur(0); opacity: 1; }
    100% { transform: scale(1); }
}

/* 灵动岛（小岛样式） */
.dynamic-island {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    pointer-events: auto;
    transition: transform 250ms ease, opacity 250ms ease;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dynamic-island.visible {
    opacity: 1;
}

/* 迷你（compact） 状态 */
.island-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    backdrop-filter: blur(6px);
    border-radius: 22px;
    padding: 8px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    min-width: 280px;
    max-width: 420px;
    cursor: pointer;
    color: #fff;
    position: relative;
}
.island-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.12);
}
.island-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.island-title {
    font-weight: 700;
    font-size: 13px;
}
.island-sub {
    font-size: 11px;
    opacity: 0.85;
}
.island-lyrics-compact {
    font-size: 11px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    margin-left: 10px;
    flex: 1;
}
.island-play {
    margin-left: auto;
    font-weight: 700;
    background: rgba(0,0,0,0.18);
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    min-width: 30px;
    color: white;
}

/* 展开态 */
.island-expanded {
    display: none;
    width: 380px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    color: #fff;
    margin-top: 12px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.1);
}
.dynamic-island.expanded .island-compact { display: none; }
.dynamic-island.expanded .island-expanded { display: flex; }

.expanded-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.2);
}
.expanded-avatar {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.12);
}
.expanded-meta { 
    flex: 1; 
    min-width: 0; 
}
.expanded-meta #expandedSongTitle { 
    font-weight: 700; 
    font-size: 14px; 
}
.expanded-meta #expandedSongArtist { 
    font-size: 12px; 
    opacity: 0.8; 
    margin-top: 4px; 
}
.expanded-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.expanded-close:hover {
    background: rgba(255,255,255,0.1);
}

/* 进度与歌词 */
.expanded-body {
    padding: 15px;
}
.island-progress { 
    margin-bottom: 15px;
}
#islandProgress { 
    width: 100%; 
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    outline: none;
}
#islandProgress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.island-lyrics-expanded {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
}
.island-lyrics-expanded .lyric-line {
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.island-lyrics-expanded .lyric-line.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 600;
}
.lyrics-placeholder {
    opacity: 0.7;
    font-style: italic;
}

.island-controls {
    display: flex;
    justify-content: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.island-control-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}
.island-control-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* 可拖拽提示（无破坏性） */
#dynamicIsland[aria-hidden="false"] { opacity: 1; }

/* 调整媒体查询以保持响应性 */
@media (max-width: 480px) {
    .dynamic-island { top: 8px; }
    .island-compact { min-width: 260px; }
    .island-lyrics-compact { max-width: 80px; }
    .island-expanded { 
        width: calc(100% - 32px); 
        margin-left: 16px; 
        margin-right: 16px; 
    }
}

img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  lazy-load: true;
}