/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ZCOOL KuaiLe', 'Ma Shan Zheng', cursive, sans-serif;
    min-height: 100vh;
    /* 棉花糖天空感渐变背景：浅紫→浅蓝→淡粉 */
    background: linear-gradient(
        180deg,
        #e6d5f0 0%,
        #d4c4e8 20%,
        #c8ddf5 50%,
        #b8d9f0 70%,
        #e8d5e0 85%,
        #f0d5e0 100%
    );
    overflow-x: hidden;
    position: relative;
}

/* ========== 云朵装饰 ========== */
.cloud {
    position: fixed;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 100px;
    filter: blur(8px);
    opacity: 0.8;
    animation: float 20s infinite ease-in-out;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 100px;
}

.cloud-1 {
    width: 120px;
    height: 50px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.cloud-1::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 15px;
}

.cloud-1::after {
    width: 70px;
    height: 50px;
    top: -20px;
    right: 15px;
}

.cloud-2 {
    width: 100px;
    height: 40px;
    top: 25%;
    right: 15%;
    animation-delay: -7s;
}

.cloud-2::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.cloud-2::after {
    width: 60px;
    height: 40px;
    top: -15px;
    right: 10px;
}

.cloud-3 {
    width: 140px;
    height: 55px;
    bottom: 20%;
    left: 5%;
    animation-delay: -14s;
}

.cloud-3::before {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 20px;
}

.cloud-3::after {
    width: 80px;
    height: 55px;
    top: -25px;
    right: 20px;
}

@keyframes float {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(20px) translateY(-10px);
    }
    50% {
        transform: translateX(-10px) translateY(5px);
    }
    75% {
        transform: translateX(15px) translateY(-5px);
    }
}

/* ========== 毛玻璃卡片样式 ========== */
.glass-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 8px 32px rgba(180, 160, 200, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(180, 160, 200, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ========== 主容器布局 ========== */
.main-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

.left-section {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ========== 照片卡片 ========== */
.photo-card {
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.photo-frame {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(150, 130, 170, 0.3);
}

.profile-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.photo-card:hover .profile-photo {
    transform: scale(1.05);
}

.photo-decoration {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 60%
    );
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ========== 进度条 ========== */
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b9d, #c44569, #f8b500);
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ========== Hello Kitty CSS绘制 ========== */
.hello-kitty-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.hello-kitty {
    position: relative;
    width: 150px;
    height: 180px;
    animation: sway 4s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes sway {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

/* Hello Kitty 头部 */
.hk-head {
    position: absolute;
    width: 120px;
    height: 90px;
    background: #fff;
    border-radius: 50% 50% 45% 45%;
    top: 0;
    left: 15px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset -5px -5px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

/* 耳朵 */
.hk-ear {
    position: absolute;
    width: 30px;
    height: 35px;
    background: #fff;
    border-radius: 50% 50% 0 0;
    top: -15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hk-ear.left {
    left: 10px;
    transform: rotate(-20deg);
}

.hk-ear.right {
    right: 10px;
    transform: rotate(20deg);
}

/* 脸部 */
.hk-face {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* 眼睛 */
.hk-eye {
    position: absolute;
    width: 10px;
    height: 14px;
    background: #333;
    border-radius: 50%;
    top: 45px;
    animation: blink 3s infinite;
}

.hk-eye.left {
    left: 32px;
}

.hk-eye.right {
    right: 32px;
}

@keyframes blink {
    0%, 45%, 55%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.1);
    }
}

/* 鼻子 */
.hk-nose {
    position: absolute;
    width: 12px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    top: 55px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 胡须 */
.hk-whisker {
    position: absolute;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

.hk-whisker.w1 {
    top: 48px;
    left: 5px;
    transform: rotate(10deg);
}

.hk-whisker.w2 {
    top: 58px;
    left: 3px;
    transform: rotate(0deg);
}

.hk-whisker.w3 {
    top: 68px;
    left: 5px;
    transform: rotate(-10deg);
}

.hk-whisker.w4 {
    top: 48px;
    right: 5px;
    transform: rotate(-10deg);
}

.hk-whisker.w5 {
    top: 58px;
    right: 3px;
    transform: rotate(0deg);
}

.hk-whisker.w6 {
    top: 68px;
    right: 5px;
    transform: rotate(10deg);
}

/* 蝴蝶结 */
.hk-bow {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 40px;
    height: 30px;
    z-index: 15;
}

.bow-center {
    position: absolute;
    width: 14px;
    height: 14px;
    background: #ff4757;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.bow-left,
.bow-right {
    position: absolute;
    width: 22px;
    height: 18px;
    background: #ff4757;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.bow-left {
    left: 0;
    border-radius: 50% 30% 30% 50%;
}

.bow-right {
    right: 0;
    border-radius: 30% 50% 50% 30%;
}

/* 身体 */
.hk-body {
    position: absolute;
    width: 70px;
    height: 60px;
    background: #fff;
    border-radius: 40% 40% 45% 45%;
    top: 80px;
    left: 40px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 手臂 */
.hk-arm {
    position: absolute;
    width: 25px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hk-arm.left {
    left: -12px;
    transform: rotate(30deg);
}

.hk-arm.right {
    right: -12px;
    transform: rotate(-30deg);
}

/* 腿 */
.hk-leg {
    position: absolute;
    width: 22px;
    height: 30px;
    background: #fff;
    border-radius: 0 0 50% 50%;
    bottom: -20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hk-leg.left {
    left: 10px;
}

.hk-leg.right {
    right: 10px;
}

/* ========== 标题样式 ========== */
.main-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(150, 130, 170, 0.3);
}

.title-highlight {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 50%, #f8b500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.title-small {
    font-size: 1.5rem;
    color: #8b7aa0;
    margin-left: 10px;
}

/* ========== 个人信息卡片 ========== */
.info-card {
    padding: 28px;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    font-size: 1.1rem;
    color: #5a4a6a;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(5px);
}

/* ========== 黑胶唱片播放器 ========== */
.vinyl-player {
    padding: 24px;
    text-align: center;
}

.player-title {
    font-size: 1.2rem;
    color: #7a6a8a;
    margin-bottom: 20px;
}

.vinyl-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    cursor: pointer;
}

.vinyl-record {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        repeating-radial-gradient(
            circle at center,
            #1a1a1a 0px,
            #1a1a1a 2px,
            #2a2a2a 3px,
            #2a2a2a 4px
        );
    position: relative;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.vinyl-record.playing {
    animation: spin 2.5s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.song-name {
    font-size: 0.75rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.singer-name {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* 音符容器 */
.notes-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.music-note {
    position: absolute;
    font-size: 1.5rem;
    color: #ff6b9d;
    opacity: 0;
    animation: floatNote 2s ease-out forwards;
}

@keyframes floatNote {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(1.2) rotate(30deg);
    }
}

/* 播放控制 */
.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.play-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 69, 105, 0.3);
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(196, 69, 105, 0.4);
}

.play-btn:active {
    transform: scale(0.98);
}

.progress-bar {
    flex: 1;
    max-width: 150px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6b9d, #c44569);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ========== 签名气泡框 ========== */
.signature-bubble {
    position: relative;
    padding: 28px;
    margin-top: 10px;
}

.bubble-tail {
    position: absolute;
    bottom: -15px;
    right: 40px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid rgba(255, 255, 255, 0.35);
}

.signature-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #5a4a6a;
    font-style: italic;
    text-align: center;
}

.signature-author {
    text-align: right;
    margin-top: 15px;
    font-size: 1rem;
    color: #8b7aa0;
}

/* ========== 山茶花飘落 ========== */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ffb7c5 0%, #ff91a4 100%);
    border-radius: 0 50% 0 50%;
    opacity: 0.8;
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }
    
    .left-section {
        flex: none;
        width: 100%;
        max-width: 400px;
    }
    
    .right-section {
        width: 100%;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .info-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 20px 15px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .title-small {
        font-size: 1.1rem;
        display: block;
        margin-top: 5px;
        margin-left: 0;
    }

    .glass-card {
        padding: 18px;
    }

    .info-item {
        font-size: 1rem;
    }

    .vinyl-container {
        width: 160px;
        height: 160px;
    }

    .vinyl-label {
        width: 65px;
        height: 65px;
    }

    .song-name {
        font-size: 0.65rem;
    }

    .singer-name {
        font-size: 0.5rem;
    }

    .hello-kitty {
        transform: scale(0.85);
    }
}

/* ========== 联系方式样式 ========== */
.contact-card {
    padding: 24px;
}

.contact-title {
    font-size: 1.3rem;
    color: #8b7aa0;
    margin-bottom: 18px;
    text-align: center;
}

.contact-title i {
    color: #ff6b9d;
    margin-right: 8px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.2rem;
    color: #ff6b9d;
}

.contact-item a,
.contact-item span {
    font-size: 1rem;
    color: #5a4a6a;
}

.contact-item a:hover {
    color: #ff6b9d;
}

.tech-footer {
    background: rgba(200, 190, 210, 0.3);
    padding: 30px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.tech-support {
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
}

.tech-support a {
    color: var(--accent);
    transition: color 0.3s;
}

.tech-support a:hover {
    color: #ff6b9d;
    text-decoration: underline;
}
